Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesrna/intern/rna_space.c
| Context not available. | |||||
| return ED_space_image_show_paint(sima); | return ED_space_image_show_paint(sima); | ||||
| } | } | ||||
| static int rna_SpaceImageEditor_show_nurbsuv_get(PointerRNA *ptr) | |||||
| { | |||||
| SpaceImage *sima = (SpaceImage *)(ptr->data); | |||||
| bScreen *sc = (bScreen *)ptr->owner_id; | |||||
| wmWindow *win = ED_screen_window_find(sc, G_MAIN->wm.first); | |||||
| ViewLayer *view_layer = WM_window_get_active_view_layer(win); | |||||
| Object *obedit = OBEDIT_FROM_VIEW_LAYER(view_layer); | |||||
| return ED_space_image_show_nurbsuv(sima, obedit); | |||||
| } | |||||
| static bool rna_SpaceImageEditor_show_uvedit_get(PointerRNA *ptr) | static bool rna_SpaceImageEditor_show_uvedit_get(PointerRNA *ptr) | ||||
| { | { | ||||
| SpaceImage *sima = (SpaceImage *)(ptr->data); | SpaceImage *sima = (SpaceImage *)(ptr->data); | ||||
| Context not available. | |||||
| RNA_def_property_clear_flag(prop, PROP_EDITABLE); | RNA_def_property_clear_flag(prop, PROP_EDITABLE); | ||||
| RNA_def_property_ui_text(prop, "Show UV Editor", "Show UV editing related properties"); | RNA_def_property_ui_text(prop, "Show UV Editor", "Show UV editing related properties"); | ||||
| prop = RNA_def_property(srna, "show_nurbsuv", PROP_BOOLEAN, PROP_NONE); | |||||
| RNA_def_property_boolean_funcs(prop, "rna_SpaceImageEditor_show_nurbsuv_get", NULL); | |||||
| RNA_def_property_clear_flag(prop, PROP_EDITABLE); | |||||
| RNA_def_property_ui_text(prop, "Show NURBS UV Editor", "Show UV editing related properties for NURBS surfaces"); | |||||
| prop = RNA_def_property(srna, "show_maskedit", PROP_BOOLEAN, PROP_NONE); | prop = RNA_def_property(srna, "show_maskedit", PROP_BOOLEAN, PROP_NONE); | ||||
| RNA_def_property_boolean_funcs(prop, "rna_SpaceImageEditor_show_maskedit_get", NULL); | RNA_def_property_boolean_funcs(prop, "rna_SpaceImageEditor_show_maskedit_get", NULL); | ||||
| RNA_def_property_clear_flag(prop, PROP_EDITABLE); | RNA_def_property_clear_flag(prop, PROP_EDITABLE); | ||||
| Context not available. | |||||