Removed the unused partial redraw flag from sculpt. It's original purpose was to...
authorNicholas Bishop <nicholasbishop@gmail.com>
Tue, 3 Nov 2009 21:58:24 +0000 (21:58 +0000)
committerNicholas Bishop <nicholasbishop@gmail.com>
Tue, 3 Nov 2009 21:58:24 +0000 (21:58 +0000)
source/blender/editors/space_view3d/drawobject.c
source/blender/makesdna/DNA_scene_types.h
source/blender/makesrna/intern/rna_sculpt_paint.c

index f7dba10200a0dbfe5bd463c13acbf06752179b0b..4f41b6e5045486755e9fd410fa191f4355c71d4c 100644 (file)
@@ -2971,10 +2971,6 @@ static int draw_mesh_object(Scene *scene, ARegion *ar, View3D *v3d, RegionView3D
                if (obedit!=ob && finalDM)
                        finalDM->release(finalDM);
        }
-//     else if(!em && (G.f & G_SCULPTMODE) &&(scene->sculptdata.flags & SCULPT_DRAW_FAST) &&
-//             OBACT==ob && !sculpt_modifiers_active(ob)) {
-// XXX         sculptmode_draw_mesh(0);
-//     }
        else {
                /* don't create boundbox here with mesh_get_bb(), the derived system will make it, puts deformed bb's OK */
                if(me->totface<=4 || boundbox_clip(rv3d, ob->obmat, (ob->bb)? ob->bb: me->bb)) {
index bafe8cc316225ea3770f33c506ea8e7c69d51372..c39712078c2c7d884592a7e2ea23fd179814eebe 100644 (file)
@@ -1052,7 +1052,6 @@ typedef enum SculptFlags {
        SCULPT_SYMM_Y = 2,
        SCULPT_SYMM_Z = 4,
        SCULPT_INPUT_SMOOTH = 8,
-       SCULPT_DRAW_FAST = 16,
        SCULPT_DRAW_BRUSH = 32,
        SCULPT_LOCK_X = 64,
        SCULPT_LOCK_Y = 128,
index 481abc983c26b89462939c87cda27d22b86b88b2..5155090b67becfcc5aad26c8f2b3fc57d0afd1ba 100644 (file)
@@ -207,10 +207,6 @@ static void rna_def_sculpt(BlenderRNA  *brna)
        prop= RNA_def_property(srna, "show_brush", PROP_BOOLEAN, PROP_NONE);
        RNA_def_property_boolean_sdna(prop, NULL, "flags", SCULPT_DRAW_BRUSH);
        RNA_def_property_ui_text(prop, "Show Brush", "");
-
-       prop= RNA_def_property(srna, "partial_redraw", PROP_BOOLEAN, PROP_NONE);
-       RNA_def_property_boolean_sdna(prop, NULL, "flags", SCULPT_DRAW_FAST);
-       RNA_def_property_ui_text(prop, "Partial Redraw", "Optimize sculpting by only refreshing modified faces.");
 }
 
 static void rna_def_vertex_paint(BlenderRNA *brna)