Merge branch 'master' into blender2.8
This commit is contained in:
commit
6d1ae5897f
|
@ -1945,7 +1945,7 @@ float evaluate_driver(PathResolvedRNA *anim_rna, ChannelDriver *driver, const fl
|
|||
BLI_mutex_unlock(&python_driver_lock);
|
||||
}
|
||||
#else /* WITH_PYTHON*/
|
||||
(void)evaltime;
|
||||
UNUSED_VARS(anim_rna, evaltime);
|
||||
#endif /* WITH_PYTHON*/
|
||||
break;
|
||||
}
|
||||
|
|
|
@ -2333,11 +2333,10 @@ bool ui_but_string_set_eval_num(bContext *C, uiBut *but, const char *str, double
|
|||
|
||||
#else /* WITH_PYTHON */
|
||||
|
||||
*value = atof(str);
|
||||
*r_value = atof(str);
|
||||
ok = true;
|
||||
|
||||
(void)C;
|
||||
(void)but;
|
||||
UNUSED_VARS(C, but);
|
||||
|
||||
#endif /* WITH_PYTHON */
|
||||
|
||||
|
|
|
@ -1621,6 +1621,7 @@ static void rna_def_linestyle(BlenderRNA *brna)
|
|||
prop = RNA_def_property(srna, "panel", PROP_ENUM, PROP_NONE);
|
||||
RNA_def_property_enum_bitflag_sdna(prop, NULL, "panel");
|
||||
RNA_def_property_enum_items(prop, panel_items);
|
||||
RNA_def_property_clear_flag(prop, PROP_ANIMATABLE);
|
||||
RNA_def_property_ui_text(prop, "Panel", "Select the property panel to be shown");
|
||||
|
||||
prop = RNA_def_property(srna, "color", PROP_FLOAT, PROP_COLOR);
|
||||
|
|
|
@ -8826,7 +8826,7 @@ static void rna_def_display_safe_areas(BlenderRNA *brna)
|
|||
RNA_def_property_array(prop, 2);
|
||||
RNA_def_property_range(prop, 0.0f, 1.0f);
|
||||
RNA_def_property_float_array_default(prop, default_title);
|
||||
RNA_def_property_ui_text(prop, "Title Safe margins", "Safe area for text and graphics");
|
||||
RNA_def_property_ui_text(prop, "Title Safe Margins", "Safe area for text and graphics");
|
||||
RNA_def_property_update(prop, NC_SCENE | ND_DRAW_RENDER_VIEWPORT, NULL);
|
||||
|
||||
prop = RNA_def_property(srna, "action", PROP_FLOAT, PROP_XYZ);
|
||||
|
@ -8837,7 +8837,6 @@ static void rna_def_display_safe_areas(BlenderRNA *brna)
|
|||
RNA_def_property_ui_text(prop, "Action Safe Margins", "Safe area for general elements");
|
||||
RNA_def_property_update(prop, NC_SCENE | ND_DRAW_RENDER_VIEWPORT, NULL);
|
||||
|
||||
|
||||
prop = RNA_def_property(srna, "title_center", PROP_FLOAT, PROP_XYZ);
|
||||
RNA_def_property_float_sdna(prop, NULL, "title_center");
|
||||
RNA_def_property_array(prop, 2);
|
||||
|
|
|
@ -557,8 +557,7 @@ void RNA_api_ui_layout(StructRNA *srna)
|
|||
RNA_def_boolean(func, "emboss", true, "", "Draw the button itself, just the icon/text");
|
||||
parm = RNA_def_property(func, "icon_value", PROP_INT, PROP_UNSIGNED);
|
||||
RNA_def_property_ui_text(parm, "Icon Value", "Override automatic icon of the item");
|
||||
parm = RNA_def_pointer(func, "properties", "OperatorProperties", "",
|
||||
"Operator properties to fill in, return when 'properties' is set to true");
|
||||
parm = RNA_def_pointer(func, "properties", "OperatorProperties", "", "Operator properties to fill in");
|
||||
RNA_def_parameter_flags(parm, 0, PARM_REQUIRED | PARM_RNAPTR);
|
||||
RNA_def_function_return(func, parm);
|
||||
RNA_def_function_ui_description(func, "Item. Places a button into the layout to call an Operator");
|
||||
|
|
|
@ -2862,8 +2862,8 @@ PyDoc_STRVAR(BPy_PointerProperty_doc,
|
|||
"name=\"\", "
|
||||
"description=\"\", "
|
||||
"options={'ANIMATABLE'}, "
|
||||
"update=None, "
|
||||
"poll=None)\n"
|
||||
"poll=None, "
|
||||
"update=None)\n"
|
||||
"\n"
|
||||
" Returns a new pointer property definition.\n"
|
||||
"\n"
|
||||
|
@ -3001,7 +3001,7 @@ PyObject *BPy_CollectionProperty(PyObject *self, PyObject *args, PyObject *kw)
|
|||
}
|
||||
|
||||
PyDoc_STRVAR(BPy_RemoveProperty_doc,
|
||||
".. function:: RemoveProperty(cls, attr="")\n"
|
||||
".. function:: RemoveProperty(cls, attr)\n"
|
||||
"\n"
|
||||
" Removes a dynamically defined property.\n"
|
||||
"\n"
|
||||
|
|
Loading…
Reference in New Issue