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:
authorNicholas Bishop <nicholasbishop@gmail.com>2006-12-02 01:44:27 +0300
committerNicholas Bishop <nicholasbishop@gmail.com>2006-12-02 01:44:27 +0300
commit451cb25e4e87f1b7e8a505cd93b0fb1c6dac59df (patch)
tree44cde5b89df3b4956f0b6062739e6017527074cb /source/blender/src/multires.c
parent662ce4a3682944e6d28e223ac6a101363cfd4734 (diff)
Added warning in the multires panel to alert user if they have a modifier that changes mesh topology enabled, the render level will not have any effect.
Diffstat (limited to 'source/blender/src/multires.c')
-rw-r--r--source/blender/src/multires.c24
1 files changed, 24 insertions, 0 deletions
diff --git a/source/blender/src/multires.c b/source/blender/src/multires.c
index 752b9e8cf03..45806e1efd4 100644
--- a/source/blender/src/multires.c
+++ b/source/blender/src/multires.c
@@ -39,6 +39,7 @@
#include "DNA_mesh_types.h"
#include "DNA_meshdata_types.h"
+#include "DNA_modifier_types.h"
#include "DNA_object_types.h"
#include "DNA_scene_types.h"
#include "DNA_vec_types.h"
@@ -47,6 +48,7 @@
#include "BKE_depsgraph.h"
#include "BKE_global.h"
#include "BKE_mesh.h"
+#include "BKE_modifier.h"
#include "BIF_screen.h"
#include "BIF_space.h"
@@ -1366,3 +1368,25 @@ void multires_edge_level_update(void *ob, void *me_v)
allqueue(REDRAWVIEW3D, 0);
}
+
+int multires_modifier_warning()
+{
+ ModifierData *md;
+
+ for(md= modifiers_getVirtualModifierList(OBACT); md; md= md->next) {
+ if(md->mode & eModifierMode_Render) {
+ switch(md->type) {
+ case eModifierType_Subsurf:
+ case eModifierType_Build:
+ case eModifierType_Mirror:
+ case eModifierType_Decimate:
+ case eModifierType_Boolean:
+ case eModifierType_Array:
+ case eModifierType_EdgeSplit:
+ return 1;
+ }
+ }
+ }
+
+ return 0;
+}