RNA: Remove remaining relevant scene->basact and BaseLegacy
Note: In one case (rna_Scene_editmesh_select_mode_set) I had to resort to the temporary solution of BKE_scene_layer_context_active. This is fine for now, but it will be a problem once workspaces are introduced. In this case the fix is to use a temporary value in the set routine, and actually only set the active object in the update function (which can take bContext).
This commit is contained in:
@@ -94,6 +94,7 @@ static EnumPropertyItem empty_vortex_shape_items[] = {
|
||||
#include "DNA_modifier_types.h"
|
||||
#include "DNA_texture_types.h"
|
||||
|
||||
#include "BKE_collection.h"
|
||||
#include "BKE_context.h"
|
||||
#include "BKE_modifier.h"
|
||||
#include "BKE_pointcache.h"
|
||||
@@ -605,11 +606,11 @@ static void rna_EffectorWeight_update(Main *UNUSED(bmain), Scene *UNUSED(scene),
|
||||
|
||||
if (id && GS(id->name) == ID_SCE) {
|
||||
Scene *scene = (Scene *)id;
|
||||
BaseLegacy *base;
|
||||
|
||||
for (base = scene->base.first; base; base = base->next) {
|
||||
BKE_ptcache_object_reset(scene, base->object, PTCACHE_RESET_DEPSGRAPH);
|
||||
FOREACH_SCENE_OBJECT(scene, ob)
|
||||
{
|
||||
BKE_ptcache_object_reset(scene, ob, PTCACHE_RESET_DEPSGRAPH);
|
||||
}
|
||||
FOREACH_SCENE_OBJECT_END
|
||||
}
|
||||
else {
|
||||
DAG_id_tag_update(id, OB_RECALC_DATA | PSYS_RECALC_RESET);
|
||||
|
||||
@@ -1747,23 +1747,25 @@ static void rna_Scene_use_nodes_update(bContext *C, PointerRNA *ptr)
|
||||
static void rna_Physics_update(Main *UNUSED(bmain), Scene *UNUSED(scene), PointerRNA *ptr)
|
||||
{
|
||||
Scene *scene = (Scene *)ptr->id.data;
|
||||
BaseLegacy *base;
|
||||
|
||||
for (base = scene->base.first; base; base = base->next)
|
||||
BKE_ptcache_object_reset(scene, base->object, PTCACHE_RESET_DEPSGRAPH);
|
||||
FOREACH_SCENE_OBJECT(scene, ob)
|
||||
{
|
||||
BKE_ptcache_object_reset(scene, ob, PTCACHE_RESET_DEPSGRAPH);
|
||||
}
|
||||
FOREACH_SCENE_OBJECT_END
|
||||
}
|
||||
|
||||
static void rna_Scene_editmesh_select_mode_set(PointerRNA *ptr, const int *value)
|
||||
{
|
||||
Scene *scene = (Scene *)ptr->id.data;
|
||||
SceneLayer *sl = BKE_scene_layer_context_active(scene);
|
||||
ToolSettings *ts = (ToolSettings *)ptr->data;
|
||||
int flag = (value[0] ? SCE_SELECT_VERTEX : 0) | (value[1] ? SCE_SELECT_EDGE : 0) | (value[2] ? SCE_SELECT_FACE : 0);
|
||||
|
||||
if (flag) {
|
||||
ts->selectmode = flag;
|
||||
|
||||
if (scene->basact) {
|
||||
Mesh *me = BKE_mesh_from_object(scene->basact->object);
|
||||
if (sl->basact) {
|
||||
Mesh *me = BKE_mesh_from_object(sl->basact->object);
|
||||
if (me && me->edit_btmesh && me->edit_btmesh->selectmode != flag) {
|
||||
me->edit_btmesh->selectmode = flag;
|
||||
EDBM_selectmode_set(me->edit_btmesh);
|
||||
@@ -1772,12 +1774,13 @@ static void rna_Scene_editmesh_select_mode_set(PointerRNA *ptr, const int *value
|
||||
}
|
||||
}
|
||||
|
||||
static void rna_Scene_editmesh_select_mode_update(Main *UNUSED(bmain), Scene *scene, PointerRNA *UNUSED(ptr))
|
||||
static void rna_Scene_editmesh_select_mode_update(Main *UNUSED(bmain), bContext *C, Scene *UNUSED(scene), PointerRNA *UNUSED(ptr))
|
||||
{
|
||||
SceneLayer *sl = CTX_data_scene_layer(C);
|
||||
Mesh *me = NULL;
|
||||
|
||||
if (scene->basact) {
|
||||
me = BKE_mesh_from_object(scene->basact->object);
|
||||
if (sl->basact) {
|
||||
me = BKE_mesh_from_object(sl->basact->object);
|
||||
if (me && me->edit_btmesh == NULL)
|
||||
me = NULL;
|
||||
}
|
||||
@@ -1818,7 +1821,7 @@ static void rna_Scene_use_simplify_update(Main *bmain, Scene *UNUSED(scene), Poi
|
||||
{
|
||||
Scene *sce = ptr->id.data;
|
||||
Scene *sce_iter;
|
||||
BaseLegacy *base;
|
||||
Base *base;
|
||||
|
||||
BKE_main_id_tag_listbase(&bmain->object, LIB_TAG_DOIT, true);
|
||||
for (SETLOOPER(sce, sce_iter, base))
|
||||
@@ -2033,12 +2036,13 @@ static char *rna_CurvePaintSettings_path(PointerRNA *UNUSED(ptr))
|
||||
}
|
||||
|
||||
/* generic function to recalc geometry */
|
||||
static void rna_EditMesh_update(Main *UNUSED(bmain), Scene *scene, PointerRNA *UNUSED(ptr))
|
||||
static void rna_EditMesh_update(Main *UNUSED(bmain), bContext *C, Scene *UNUSED(scene), PointerRNA *UNUSED(ptr))
|
||||
{
|
||||
SceneLayer *sl = CTX_data_scene_layer(C);
|
||||
Mesh *me = NULL;
|
||||
|
||||
if (scene->basact) {
|
||||
me = BKE_mesh_from_object(scene->basact->object);
|
||||
if (sl->basact) {
|
||||
me = BKE_mesh_from_object(sl->basact->object);
|
||||
if (me && me->edit_btmesh == NULL)
|
||||
me = NULL;
|
||||
}
|
||||
@@ -3630,6 +3634,7 @@ static void rna_def_tool_settings(BlenderRNA *brna)
|
||||
RNA_def_property_array(prop, 3);
|
||||
RNA_def_property_boolean_funcs(prop, NULL, "rna_Scene_editmesh_select_mode_set");
|
||||
RNA_def_property_ui_text(prop, "Mesh Selection Mode", "Which mesh elements selection works on");
|
||||
RNA_def_property_flag(prop, PROP_CONTEXT_UPDATE);
|
||||
RNA_def_property_update(prop, 0, "rna_Scene_editmesh_select_mode_update");
|
||||
|
||||
prop = RNA_def_property(srna, "vertex_group_weight", PROP_FLOAT, PROP_FACTOR);
|
||||
@@ -3947,6 +3952,7 @@ static void rna_def_statvis(BlenderRNA *brna)
|
||||
prop = RNA_def_property(srna, "type", PROP_ENUM, PROP_NONE);
|
||||
RNA_def_property_enum_items(prop, stat_type);
|
||||
RNA_def_property_ui_text(prop, "Type", "Type of data to visualize/check");
|
||||
RNA_def_property_flag(prop, PROP_CONTEXT_UPDATE);
|
||||
RNA_def_property_update(prop, 0, "rna_EditMesh_update");
|
||||
|
||||
|
||||
@@ -3957,6 +3963,7 @@ static void rna_def_statvis(BlenderRNA *brna)
|
||||
RNA_def_property_range(prop, 0.0f, DEG2RADF(180.0f));
|
||||
RNA_def_property_ui_range(prop, 0.0f, DEG2RADF(180.0f), 0.001, 3);
|
||||
RNA_def_property_ui_text(prop, "Overhang Min", "Minimum angle to display");
|
||||
RNA_def_property_flag(prop, PROP_CONTEXT_UPDATE);
|
||||
RNA_def_property_update(prop, 0, "rna_EditMesh_update");
|
||||
|
||||
prop = RNA_def_property(srna, "overhang_max", PROP_FLOAT, PROP_ANGLE);
|
||||
@@ -3965,12 +3972,14 @@ static void rna_def_statvis(BlenderRNA *brna)
|
||||
RNA_def_property_range(prop, 0.0f, DEG2RADF(180.0f));
|
||||
RNA_def_property_ui_range(prop, 0.0f, DEG2RADF(180.0f), 10, 3);
|
||||
RNA_def_property_ui_text(prop, "Overhang Max", "Maximum angle to display");
|
||||
RNA_def_property_flag(prop, PROP_CONTEXT_UPDATE);
|
||||
RNA_def_property_update(prop, 0, "rna_EditMesh_update");
|
||||
|
||||
prop = RNA_def_property(srna, "overhang_axis", PROP_ENUM, PROP_NONE);
|
||||
RNA_def_property_enum_sdna(prop, NULL, "overhang_axis");
|
||||
RNA_def_property_enum_items(prop, rna_enum_object_axis_items);
|
||||
RNA_def_property_ui_text(prop, "Axis", "");
|
||||
RNA_def_property_flag(prop, PROP_CONTEXT_UPDATE);
|
||||
RNA_def_property_update(prop, 0, "rna_EditMesh_update");
|
||||
|
||||
|
||||
@@ -3981,6 +3990,7 @@ static void rna_def_statvis(BlenderRNA *brna)
|
||||
RNA_def_property_range(prop, 0.0f, 1000.0);
|
||||
RNA_def_property_ui_range(prop, 0.0f, 100.0, 0.001, 3);
|
||||
RNA_def_property_ui_text(prop, "Thickness Min", "Minimum for measuring thickness");
|
||||
RNA_def_property_flag(prop, PROP_CONTEXT_UPDATE);
|
||||
RNA_def_property_update(prop, 0, "rna_EditMesh_update");
|
||||
|
||||
prop = RNA_def_property(srna, "thickness_max", PROP_FLOAT, PROP_DISTANCE);
|
||||
@@ -3989,12 +3999,14 @@ static void rna_def_statvis(BlenderRNA *brna)
|
||||
RNA_def_property_range(prop, 0.0f, 1000.0);
|
||||
RNA_def_property_ui_range(prop, 0.0f, 100.0, 0.001, 3);
|
||||
RNA_def_property_ui_text(prop, "Thickness Max", "Maximum for measuring thickness");
|
||||
RNA_def_property_flag(prop, PROP_CONTEXT_UPDATE);
|
||||
RNA_def_property_update(prop, 0, "rna_EditMesh_update");
|
||||
|
||||
prop = RNA_def_property(srna, "thickness_samples", PROP_INT, PROP_UNSIGNED);
|
||||
RNA_def_property_int_sdna(prop, NULL, "thickness_samples");
|
||||
RNA_def_property_range(prop, 1, 32);
|
||||
RNA_def_property_ui_text(prop, "Samples", "Number of samples to test per face");
|
||||
RNA_def_property_flag(prop, PROP_CONTEXT_UPDATE);
|
||||
RNA_def_property_update(prop, 0, "rna_EditMesh_update");
|
||||
|
||||
/* distort */
|
||||
@@ -4004,6 +4016,7 @@ static void rna_def_statvis(BlenderRNA *brna)
|
||||
RNA_def_property_range(prop, 0.0f, DEG2RADF(180.0f));
|
||||
RNA_def_property_ui_range(prop, 0.0f, DEG2RADF(180.0f), 10, 3);
|
||||
RNA_def_property_ui_text(prop, "Distort Min", "Minimum angle to display");
|
||||
RNA_def_property_flag(prop, PROP_CONTEXT_UPDATE);
|
||||
RNA_def_property_update(prop, 0, "rna_EditMesh_update");
|
||||
|
||||
prop = RNA_def_property(srna, "distort_max", PROP_FLOAT, PROP_ANGLE);
|
||||
@@ -4012,6 +4025,7 @@ static void rna_def_statvis(BlenderRNA *brna)
|
||||
RNA_def_property_range(prop, 0.0f, DEG2RADF(180.0f));
|
||||
RNA_def_property_ui_range(prop, 0.0f, DEG2RADF(180.0f), 10, 3);
|
||||
RNA_def_property_ui_text(prop, "Distort Max", "Maximum angle to display");
|
||||
RNA_def_property_flag(prop, PROP_CONTEXT_UPDATE);
|
||||
RNA_def_property_update(prop, 0, "rna_EditMesh_update");
|
||||
|
||||
/* sharp */
|
||||
@@ -4021,6 +4035,7 @@ static void rna_def_statvis(BlenderRNA *brna)
|
||||
RNA_def_property_range(prop, -DEG2RADF(180.0f), DEG2RADF(180.0f));
|
||||
RNA_def_property_ui_range(prop, -DEG2RADF(180.0f), DEG2RADF(180.0f), 10, 3);
|
||||
RNA_def_property_ui_text(prop, "Distort Min", "Minimum angle to display");
|
||||
RNA_def_property_flag(prop, PROP_CONTEXT_UPDATE);
|
||||
RNA_def_property_update(prop, 0, "rna_EditMesh_update");
|
||||
|
||||
prop = RNA_def_property(srna, "sharp_max", PROP_FLOAT, PROP_ANGLE);
|
||||
@@ -4029,6 +4044,7 @@ static void rna_def_statvis(BlenderRNA *brna)
|
||||
RNA_def_property_range(prop, -DEG2RADF(180.0f), DEG2RADF(180.0f));
|
||||
RNA_def_property_ui_range(prop, -DEG2RADF(180.0f), DEG2RADF(180.0f), 10, 3);
|
||||
RNA_def_property_ui_text(prop, "Distort Max", "Maximum angle to display");
|
||||
RNA_def_property_flag(prop, PROP_CONTEXT_UPDATE);
|
||||
RNA_def_property_update(prop, 0, "rna_EditMesh_update");
|
||||
}
|
||||
|
||||
|
||||
@@ -161,9 +161,10 @@ static void rna_ParticleEdit_redo(bContext *C, PointerRNA *UNUSED(ptr))
|
||||
psys_free_path_cache(edit->psys, edit);
|
||||
}
|
||||
|
||||
static void rna_ParticleEdit_update(Main *UNUSED(bmain), Scene *scene, PointerRNA *UNUSED(ptr))
|
||||
static void rna_ParticleEdit_update(Main *UNUSED(bmain), Scene *UNUSED(scene), bContext *C, PointerRNA *UNUSED(ptr))
|
||||
{
|
||||
Object *ob = (scene->basact) ? scene->basact->object : NULL;
|
||||
SceneLayer *sl = CTX_data_scene_layer(C);
|
||||
Object *ob = OBACT_NEW;
|
||||
|
||||
if (ob) DAG_id_tag_update(&ob->id, OB_RECALC_DATA);
|
||||
}
|
||||
@@ -173,8 +174,8 @@ static void rna_ParticleEdit_tool_set(PointerRNA *ptr, int value)
|
||||
ParticleEditSettings *pset = (ParticleEditSettings *)ptr->data;
|
||||
|
||||
/* redraw hair completely if weight brush is/was used */
|
||||
if ((pset->brushtype == PE_BRUSH_WEIGHT || value == PE_BRUSH_WEIGHT) && pset->scene) {
|
||||
Object *ob = (pset->scene->basact) ? pset->scene->basact->object : NULL;
|
||||
if ((pset->brushtype == PE_BRUSH_WEIGHT || value == PE_BRUSH_WEIGHT) && pset->scene_layer) {
|
||||
Object *ob = (pset->scene_layer->basact) ? pset->scene_layer->basact->object : NULL;
|
||||
if (ob) {
|
||||
DAG_id_tag_update(&ob->id, OB_RECALC_DATA);
|
||||
WM_main_add_notifier(NC_OBJECT | ND_PARTICLE | NA_EDITED, NULL);
|
||||
@@ -186,9 +187,10 @@ static void rna_ParticleEdit_tool_set(PointerRNA *ptr, int value)
|
||||
static EnumPropertyItem *rna_ParticleEdit_tool_itemf(bContext *C, PointerRNA *UNUSED(ptr),
|
||||
PropertyRNA *UNUSED(prop), bool *UNUSED(r_free))
|
||||
{
|
||||
Scene *scene = CTX_data_scene(C);
|
||||
Object *ob = (scene->basact) ? scene->basact->object : NULL;
|
||||
SceneLayer *sl = CTX_data_scene_layer(C);
|
||||
Object *ob = OBACT_NEW;
|
||||
#if 0
|
||||
Scene *scene = CTX_data_scene(C);
|
||||
PTCacheEdit *edit = PE_get_current(scene, ob);
|
||||
ParticleSystem *psys = edit ? edit->psys : NULL;
|
||||
#else
|
||||
@@ -256,9 +258,10 @@ static int rna_Brush_mode_poll(PointerRNA *ptr, PointerRNA value)
|
||||
return brush->ob_mode & mode;
|
||||
}
|
||||
|
||||
static void rna_Sculpt_update(Main *UNUSED(bmain), Scene *scene, PointerRNA *UNUSED(ptr))
|
||||
static void rna_Sculpt_update(Main *UNUSED(bmain), bContext *C, Scene *scene, PointerRNA *UNUSED(ptr))
|
||||
{
|
||||
Object *ob = (scene->basact) ? scene->basact->object : NULL;
|
||||
SceneLayer *sl = CTX_data_scene_layer(C);
|
||||
Object *ob = OBACT_NEW;
|
||||
|
||||
if (ob) {
|
||||
DAG_id_tag_update(&ob->id, OB_RECALC_DATA);
|
||||
@@ -271,9 +274,10 @@ static void rna_Sculpt_update(Main *UNUSED(bmain), Scene *scene, PointerRNA *UNU
|
||||
}
|
||||
}
|
||||
|
||||
static void rna_Sculpt_ShowDiffuseColor_update(Main *UNUSED(bmain), Scene *scene, PointerRNA *UNUSED(ptr))
|
||||
static void rna_Sculpt_ShowDiffuseColor_update(Main *UNUSED(bmain), bContext *C, Scene *scene, PointerRNA *UNUSED(ptr))
|
||||
{
|
||||
Object *ob = (scene->basact) ? scene->basact->object : NULL;
|
||||
SceneLayer *sl = CTX_data_scene_layer(C);
|
||||
Object *ob = OBACT_NEW;
|
||||
|
||||
if (ob && ob->sculpt) {
|
||||
Sculpt *sd = scene->toolsettings->sculpt;
|
||||
@@ -592,12 +596,14 @@ static void rna_def_sculpt(BlenderRNA *brna)
|
||||
RNA_def_property_ui_text(prop, "Use Deform Only",
|
||||
"Use only deformation modifiers (temporary disable all "
|
||||
"constructive modifiers except multi-resolution)");
|
||||
RNA_def_property_flag(prop, PROP_CONTEXT_UPDATE);
|
||||
RNA_def_property_update(prop, NC_OBJECT | ND_DRAW, "rna_Sculpt_update");
|
||||
|
||||
prop = RNA_def_property(srna, "show_diffuse_color", PROP_BOOLEAN, PROP_NONE);
|
||||
RNA_def_property_boolean_sdna(prop, NULL, "flags", SCULPT_SHOW_DIFFUSE);
|
||||
RNA_def_property_ui_text(prop, "Show Diffuse Color",
|
||||
"Show diffuse color of object and overlay sculpt mask on top of it");
|
||||
RNA_def_property_flag(prop, PROP_CONTEXT_UPDATE);
|
||||
RNA_def_property_update(prop, NC_OBJECT | ND_DRAW, "rna_Sculpt_ShowDiffuseColor_update");
|
||||
|
||||
prop = RNA_def_property(srna, "detail_size", PROP_FLOAT, PROP_PIXEL);
|
||||
@@ -623,6 +629,7 @@ static void rna_def_sculpt(BlenderRNA *brna)
|
||||
RNA_def_property_ui_text(prop, "Smooth Shading",
|
||||
"Show faces in dynamic-topology mode with smooth "
|
||||
"shading rather than flat shaded");
|
||||
RNA_def_property_flag(prop, PROP_CONTEXT_UPDATE);
|
||||
RNA_def_property_update(prop, NC_OBJECT | ND_DRAW, "rna_Sculpt_update");
|
||||
|
||||
prop = RNA_def_property(srna, "symmetrize_direction", PROP_ENUM, PROP_NONE);
|
||||
@@ -877,6 +884,7 @@ static void rna_def_particle_edit(BlenderRNA *brna)
|
||||
RNA_def_property_enum_bitflag_sdna(prop, NULL, "selectmode");
|
||||
RNA_def_property_enum_items(prop, select_mode_items);
|
||||
RNA_def_property_ui_text(prop, "Selection Mode", "Particle select and display mode");
|
||||
RNA_def_property_flag(prop, PROP_CONTEXT_UPDATE);
|
||||
RNA_def_property_update(prop, NC_OBJECT | ND_DRAW, "rna_ParticleEdit_update");
|
||||
|
||||
prop = RNA_def_property(srna, "use_preserve_length", PROP_BOOLEAN, PROP_NONE);
|
||||
@@ -899,6 +907,7 @@ static void rna_def_particle_edit(BlenderRNA *brna)
|
||||
prop = RNA_def_property(srna, "use_fade_time", PROP_BOOLEAN, PROP_NONE);
|
||||
RNA_def_property_boolean_sdna(prop, NULL, "flag", PE_FADE_TIME);
|
||||
RNA_def_property_ui_text(prop, "Fade Time", "Fade paths and keys further away from current frame");
|
||||
RNA_def_property_flag(prop, PROP_CONTEXT_UPDATE);
|
||||
RNA_def_property_update(prop, NC_OBJECT | ND_DRAW, "rna_ParticleEdit_update");
|
||||
|
||||
prop = RNA_def_property(srna, "use_auto_velocity", PROP_BOOLEAN, PROP_NONE);
|
||||
@@ -935,6 +944,7 @@ static void rna_def_particle_edit(BlenderRNA *brna)
|
||||
prop = RNA_def_property(srna, "fade_frames", PROP_INT, PROP_NONE);
|
||||
RNA_def_property_range(prop, 1, 100);
|
||||
RNA_def_property_ui_text(prop, "Frames", "How many frames to fade");
|
||||
RNA_def_property_flag(prop, PROP_CONTEXT_UPDATE);
|
||||
RNA_def_property_update(prop, NC_OBJECT | ND_DRAW, "rna_ParticleEdit_update");
|
||||
|
||||
prop = RNA_def_property(srna, "type", PROP_ENUM, PROP_NONE);
|
||||
|
||||
@@ -1270,10 +1270,11 @@ static void rna_SpaceDopeSheetEditor_action_set(PointerRNA *ptr, PointerRNA valu
|
||||
}
|
||||
}
|
||||
|
||||
static void rna_SpaceDopeSheetEditor_action_update(Main *bmain, Scene *scene, PointerRNA *ptr)
|
||||
static void rna_SpaceDopeSheetEditor_action_update(Main *bmain, bContext *C, Scene *UNUSED(scene), PointerRNA *ptr)
|
||||
{
|
||||
SpaceAction *saction = (SpaceAction *)(ptr->data);
|
||||
Object *obact = (scene->basact) ? scene->basact->object : NULL;
|
||||
SceneLayer *sl = CTX_data_scene_layer(C);
|
||||
Object *obact = OBACT_NEW;
|
||||
|
||||
/* we must set this action to be the one used by active object (if not pinned) */
|
||||
if (obact /* && saction->pin == 0*/) {
|
||||
@@ -1345,10 +1346,11 @@ static void rna_SpaceDopeSheetEditor_action_update(Main *bmain, Scene *scene, Po
|
||||
}
|
||||
}
|
||||
|
||||
static void rna_SpaceDopeSheetEditor_mode_update(Main *UNUSED(bmain), Scene *scene, PointerRNA *ptr)
|
||||
static void rna_SpaceDopeSheetEditor_mode_update(Main *UNUSED(bmain), bContext *C, Scene *UNUSED(scene), PointerRNA *ptr)
|
||||
{
|
||||
SpaceAction *saction = (SpaceAction *)(ptr->data);
|
||||
Object *obact = (scene->basact) ? scene->basact->object : NULL;
|
||||
SceneLayer *sl = CTX_data_scene_layer(C);
|
||||
Object *obact = OBACT_NEW;
|
||||
|
||||
/* special exceptions for ShapeKey Editor mode */
|
||||
if (saction->mode == SACTCONT_SHAPEKEY) {
|
||||
@@ -3461,6 +3463,7 @@ static void rna_def_space_dopesheet(BlenderRNA *brna)
|
||||
RNA_def_property_pointer_funcs(prop, NULL, "rna_SpaceDopeSheetEditor_action_set", NULL,
|
||||
"rna_Action_actedit_assign_poll");
|
||||
RNA_def_property_ui_text(prop, "Action", "Action displayed and edited in this space");
|
||||
RNA_def_property_flag(prop, PROP_CONTEXT_UPDATE);
|
||||
RNA_def_property_update(prop, NC_ANIMATION | ND_KEYFRAME | NA_EDITED, "rna_SpaceDopeSheetEditor_action_update");
|
||||
|
||||
/* mode */
|
||||
@@ -3468,6 +3471,7 @@ static void rna_def_space_dopesheet(BlenderRNA *brna)
|
||||
RNA_def_property_enum_sdna(prop, NULL, "mode");
|
||||
RNA_def_property_enum_items(prop, mode_items);
|
||||
RNA_def_property_ui_text(prop, "Mode", "Editing context being displayed");
|
||||
RNA_def_property_flag(prop, PROP_CONTEXT_UPDATE);
|
||||
RNA_def_property_update(prop, NC_SPACE | ND_SPACE_DOPESHEET, "rna_SpaceDopeSheetEditor_mode_update");
|
||||
|
||||
/* display */
|
||||
|
||||
Reference in New Issue
Block a user