diff options
author | Daniel Dunbar <daniel@zuster.org> | 2005-08-18 15:31:20 +0400 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2005-08-18 15:31:20 +0400 |
commit | 8c41c00ff7b67f885f67af835f1228f0ba42a455 (patch) | |
tree | ad280f23e68ed054559e447e311c044d313f8da5 /source/blender/src/header_image.c | |
parent | b774712d80c8901041282544c5dd6a9b3b0bbecf (diff) |
- added DerivedMesh.drawUVEdges function & implementations
- removed DerivedMesh.drawLooseEdges and replaced with much more
general drawEdgesFlag function that draws based edge flags.
- switch DerivedMesh.drawFacesTex to give user control over which
faces are drawn
- added object_uvs_changed and object_tface_flags_changed functions
to do object recalc flag flush/redraw queueing and added calls
in appropriate places
- added various edge flags to mark TFace information. This is used
by the drawEdgesFlag routine and was the best way I could come
up with to deal with drawing TFace information from modifier stack.
Unfortunate side effects are (1) uses a lot of MEdge flags (although
not needed in file so thats fine) and (2) requires recalculation
of modifier stack on UV selection changes. #2 is disappointing
but I could not find a better solution.
- update UV mesh shadow drawing to use modifier result. At the moment
just uses the final result but probably should be integrated with
the editmode cage option.
- convert draw_tfaces3D to use drawEdgesFlag routine which cleaned
up the code quite a bit.
- convert draw_tface_mesh to draw using result of modifier stack.
Same comment about which result actually gets draw in FACESELECT
mode as for UV editor shadow drawing applies.
There is a still a bug in that selection is using the wrong
mesh to draw.
Diffstat (limited to 'source/blender/src/header_image.c')
-rw-r--r-- | source/blender/src/header_image.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/source/blender/src/header_image.c b/source/blender/src/header_image.c index 3a9bfe466a3..55fc3cb845d 100644 --- a/source/blender/src/header_image.c +++ b/source/blender/src/header_image.c @@ -45,6 +45,7 @@ #include "DNA_ID.h" #include "DNA_image_types.h" #include "DNA_mesh_types.h" +#include "DNA_object_types.h" #include "DNA_packedFile_types.h" #include "DNA_scene_types.h" #include "DNA_screen_types.h" @@ -58,6 +59,7 @@ #include "BKE_main.h" #include "BKE_packedFile.h" #include "BKE_utildefines.h" +#include "BKE_depsgraph.h" #include "BLI_blenlib.h" #include "BIF_drawimage.h" @@ -300,8 +302,8 @@ void do_image_buttons(unsigned short event) case B_CLIP_UV: tface_do_clip(); - allqueue(REDRAWIMAGE, 0); - allqueue(REDRAWVIEW3D, 0); + + if (OBACT) object_uvs_changed(OBACT); break; case B_SIMAGEPAINTTOOL: |