Jump to content

Blender Script Question


Didact2401

Recommended Posts

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

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 by neomonkeus
Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...