Didact2401 Posted July 30, 2014 Share Posted July 30, 2014 Probably not the best place to ask this, but here goes: I just wrapped up a script that takes a _0 mesh and fits it to a _1 mesh (this is useful when you screw up vert / face order or UVs between the two versions and need to match properties again). However, after running, the mesh is temporarily displaced in the viewport (but not according to the actual positional data) until you do something like enter and exit edit mode at which point it returns to normal. Any ideas on what I need to do to force a "refresh" in the viewport? Link to comment Share on other sites More sharing options...
neomonkeus Posted July 30, 2014 Share Posted July 30, 2014 (edited) What version of Blender are you using? Generally what we do is switch to edit mode if you are editing "edit-mode" only data and switch back, but this is generally bones, haven't encountered the issue for geometry data. Would need to look at come code first to be sure.The other is to call scene.update(). Edited July 30, 2014 by neomonkeus Link to comment Share on other sites More sharing options...
Recommended Posts