Missing convert button on particle modifier panel. Cache pathcache check
authorAntony Riakiotakis <kalast@gmail.com>
Mon, 4 Nov 2013 18:40:45 +0000 (18:40 +0000)
committerAntony Riakiotakis <kalast@gmail.com>
Mon, 4 Nov 2013 18:40:45 +0000 (18:40 +0000)
should be only on path display mode.

source/blender/editors/interface/interface_templates.c

index c343115be305e1b147bdd7d6d0d007a350af3003..11990a5d052e4491dcde3dd8df8e2c7bbea30499 100644 (file)
@@ -967,11 +967,11 @@ static uiLayout *draw_modifier(uiLayout *layout, Scene *scene, Object *ob,
                        if (md->type == eModifierType_ParticleSystem) {
                                ParticleSystem *psys = ((ParticleSystemModifierData *)md)->psys;
                                
-                               if (!(ob->mode & OB_MODE_PARTICLE_EDIT) && psys->pathcache) {
+                               if (!(ob->mode & OB_MODE_PARTICLE_EDIT)) {
                                        if (ELEM(psys->part->ren_as, PART_DRAW_GR, PART_DRAW_OB))
                                                uiItemO(row, CTX_IFACE_(BLF_I18NCONTEXT_OPERATOR_DEFAULT, "Convert"), ICON_NONE,
                                                        "OBJECT_OT_duplicates_make_real");
-                                       else if (psys->part->ren_as == PART_DRAW_PATH)
+                                       else if (psys->part->ren_as == PART_DRAW_PATH && psys->pathcache)
                                                uiItemO(row, CTX_IFACE_(BLF_I18NCONTEXT_OPERATOR_DEFAULT, "Convert"), ICON_NONE,
                                                        "OBJECT_OT_modifier_convert");
                                }