Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJiri Hnidek <jiri.hnidek@tul.cz>2005-02-21 13:40:30 +0300
committerJiri Hnidek <jiri.hnidek@tul.cz>2005-02-21 13:40:30 +0300
commitc2e6ced9b8b65f54f23a68ef2c062f871783cc1a (patch)
tree2a5330e1e452485bc1c49d52603c74e095adb25a /source/blender/src/editmball.c
parent597da98a71c984afdf78d7e97e843f9104ac9d6c (diff)
- added "hide" flag for MetaElem. Hidden MetaElem doesn't influence polygonisation.
It is useful for large scenes, when you work with lot of MetaElems. Example: http://e-learning.vslib.cz/~hnidek/pics/deer.jpg (PildaNovak's model) - shortcuts for hiding of MetaElems: H ......... hide all selected MetaElems Shift-H ... hide all unselected MetaElems Alt-H ..... unhide all hidden MetaElems - items in header menu of 3dview
Diffstat (limited to 'source/blender/src/editmball.c')
-rw-r--r--source/blender/src/editmball.c45
1 files changed, 45 insertions, 0 deletions
diff --git a/source/blender/src/editmball.c b/source/blender/src/editmball.c
index 096c5049c71..1d9e7082dd4 100644
--- a/source/blender/src/editmball.c
+++ b/source/blender/src/editmball.c
@@ -414,3 +414,48 @@ void undo_push_mball(char *name)
{
undo_editmode_push(name, free_undoMball, undoMball_to_editMball, editMball_to_undoMball);
}
+
+/* Hide selected/unselected MetaElems */
+void hide_mball(char hide)
+{
+ MetaElem *ml;
+
+ ml= editelems.first;
+
+ while(ml){
+ if(hide){
+ if(!(ml->flag & SELECT))
+ ml->flag |= MB_HIDE;
+ }
+ else{
+ if(ml->flag & SELECT)
+ ml->flag |= MB_HIDE;
+ }
+ ml= ml->next;
+ }
+
+ makeDispList(G.obedit);
+ allqueue(REDRAWVIEW3D, 0);
+ allqueue(REDRAWBUTSEDIT, 0);
+
+ BIF_undo_push("Hide MetaElems");
+}
+
+/* Unhide all edited MetaElems */
+void reveal_mball(void)
+{
+ MetaElem *ml;
+
+ ml= editelems.first;
+
+ while(ml){
+ ml->flag &= ~MB_HIDE;
+ ml= ml->next;
+ }
+
+ makeDispList(G.obedit);
+ allqueue(REDRAWVIEW3D, 0);
+ allqueue(REDRAWBUTSEDIT, 0);
+
+ BIF_undo_push("Unhide MetaElems");
+}