Fix for [#20286] New objects have no Display Type
authorMatt Ebb <matt@mke3.net>
Mon, 7 Dec 2009 10:28:36 +0000 (10:28 +0000)
committerMatt Ebb <matt@mke3.net>
Mon, 7 Dec 2009 10:28:36 +0000 (10:28 +0000)
Removed a few more references to shaded mode

source/blender/blenkernel/intern/exotic.c
source/blender/blenkernel/intern/object.c
source/blender/editors/object/object_modifier.c
source/blender/makesrna/intern/rna_modifier.c

index 48a05c2f6a73687dc76041c256967520ec31ff1a..2a0759e6c36d59df15bc5e07b3cdd358638e75c6 100644 (file)
@@ -4050,7 +4050,7 @@ static void dxf_read(Scene *scene, char *filename)
        
                                                ob->type= OB_MESH;
        
-                                               ob->dt= OB_SHADED;
+                                               ob->dt= OB_TEXTURE;
 
                                                ob->trackflag= OB_POSY;
                                                ob->upflag= OB_POSZ;
index 41255415b67dae3106f28317c2a3776b44c2720f..5806b269e7dc2d2269e1bdf8dbf9c95ddc56718b 100644 (file)
@@ -982,7 +982,7 @@ Object *add_only_object(int type, char *name)
        unit_m4(ob->constinv);
        unit_m4(ob->parentinv);
        unit_m4(ob->obmat);
-       ob->dt= OB_SHADED;
+       ob->dt= OB_TEXTURE;
        ob->empty_drawtype= OB_ARROWS;
        ob->empty_drawsize= 1.0;
 
index 0c1e6b86a998b7e579a3a91eb1bdb41cb0e806d2..14c342d4ecd3e1f00a39152a7f593e3d519c03aa 100644 (file)
@@ -185,7 +185,7 @@ int ED_object_modifier_remove(ReportList *reports, Scene *scene, Object *ob, Mod
         DAG_scene_sort(scene);
        }
        else if(md->type == eModifierType_Smoke) {
-               ob->dt = OB_SHADED;
+               ob->dt = OB_TEXTURE;
        }
 
        BLI_remlink(&ob->modifiers, md);
index a86d889d6cff7a1c7a0daa968d6a696194bdbba6..d5cdad08923dfe1e588e5b30478f71b710fb13ec 100644 (file)
@@ -224,7 +224,7 @@ static void rna_Smoke_set_type(bContext *C, PointerRNA *ptr)
                case MOD_SMOKE_TYPE_COLL:
                case 0:
                default:
-                       ob->dt = OB_SHADED;
+                       ob->dt = OB_TEXTURE;
                        break;
        }