style cleanup
This commit is contained in:
		@@ -591,7 +591,7 @@ void WM_operator_properties_alloc(PointerRNA **ptr, IDProperty **properties, con
 | 
			
		||||
 | 
			
		||||
void WM_operator_properties_sanitize(PointerRNA *ptr, const short no_context)
 | 
			
		||||
{
 | 
			
		||||
	RNA_STRUCT_BEGIN (ptr, prop)
 | 
			
		||||
	RNA_STRUCT_BEGIN(ptr, prop)
 | 
			
		||||
	{
 | 
			
		||||
		switch (RNA_property_type(prop)) {
 | 
			
		||||
			case PROP_ENUM:
 | 
			
		||||
@@ -625,7 +625,7 @@ void WM_operator_properties_reset(wmOperator *op)
 | 
			
		||||
		PropertyRNA *iterprop;
 | 
			
		||||
		iterprop = RNA_struct_iterator_property(op->type->srna);
 | 
			
		||||
 | 
			
		||||
		RNA_PROP_BEGIN (op->ptr, itemptr, iterprop)
 | 
			
		||||
		RNA_PROP_BEGIN(op->ptr, itemptr, iterprop)
 | 
			
		||||
		{
 | 
			
		||||
			PropertyRNA *prop = itemptr.data;
 | 
			
		||||
 | 
			
		||||
@@ -1809,7 +1809,7 @@ static int wm_link_append_exec(bContext *C, wmOperator *op)
 | 
			
		||||
		BLO_library_append_named_part_ex(C, mainl, &bh, name, idcode, flag);
 | 
			
		||||
	}
 | 
			
		||||
	else {
 | 
			
		||||
		RNA_BEGIN (op->ptr, itemptr, "files")
 | 
			
		||||
		RNA_BEGIN(op->ptr, itemptr, "files")
 | 
			
		||||
		{
 | 
			
		||||
			RNA_string_get(&itemptr, "name", name);
 | 
			
		||||
			BLO_library_append_named_part_ex(C, mainl, &bh, name, idcode, flag);
 | 
			
		||||
@@ -2163,10 +2163,10 @@ static int wm_collada_export_exec(bContext *C, wmOperator *op)
 | 
			
		||||
{
 | 
			
		||||
	char filename[FILE_MAX];
 | 
			
		||||
	int selected, second_life, 
 | 
			
		||||
		include_armatures,
 | 
			
		||||
		apply_modifiers, 
 | 
			
		||||
		include_children,
 | 
			
		||||
		use_object_instantiation;
 | 
			
		||||
	int include_armatures,
 | 
			
		||||
	int apply_modifiers,
 | 
			
		||||
	int include_children,
 | 
			
		||||
	int use_object_instantiation;
 | 
			
		||||
	
 | 
			
		||||
	if (!RNA_struct_property_is_set(op->ptr, "filepath")) {
 | 
			
		||||
		BKE_report(op->reports, RPT_ERROR, "No filename given");
 | 
			
		||||
@@ -2187,14 +2187,14 @@ static int wm_collada_export_exec(bContext *C, wmOperator *op)
 | 
			
		||||
	ED_object_exit_editmode(C, 0);  /* 0 = does not exit editmode */
 | 
			
		||||
 | 
			
		||||
	if (collada_export(
 | 
			
		||||
		CTX_data_scene(C),
 | 
			
		||||
		filename,
 | 
			
		||||
		selected,
 | 
			
		||||
		apply_modifiers,
 | 
			
		||||
		include_armatures,
 | 
			
		||||
		include_children,
 | 
			
		||||
		use_object_instantiation,
 | 
			
		||||
		second_life)) {
 | 
			
		||||
	        CTX_data_scene(C),
 | 
			
		||||
	        filename,
 | 
			
		||||
	        selected,
 | 
			
		||||
	        apply_modifiers,
 | 
			
		||||
	        include_armatures,
 | 
			
		||||
	        include_children,
 | 
			
		||||
	        use_object_instantiation,
 | 
			
		||||
	        second_life)) {
 | 
			
		||||
		return OPERATOR_FINISHED;
 | 
			
		||||
	}
 | 
			
		||||
	else {
 | 
			
		||||
@@ -2229,7 +2229,7 @@ static void WM_OT_collada_export(wmOperatorType *ot)
 | 
			
		||||
	                "Include all children even if not selected");
 | 
			
		||||
 | 
			
		||||
	RNA_def_boolean(ot->srna, "use_object_instantiation", 1, "Use Object Instantiation",
 | 
			
		||||
		            "Instantiate multiple Objects from same Data");
 | 
			
		||||
	                "Instantiate multiple Objects from same Data");
 | 
			
		||||
 | 
			
		||||
	RNA_def_boolean(ot->srna, "second_life", 0, "Export for Second Life",
 | 
			
		||||
	                "Compatibility mode for Second Life");
 | 
			
		||||
@@ -2315,7 +2315,7 @@ static void WM_OT_console_toggle(wmOperatorType *ot)
 | 
			
		||||
{
 | 
			
		||||
	/* XXX Have to mark these for xgettext, as under linux they do not exists...
 | 
			
		||||
	 *     And even worth, have to give the context as text, as xgettext doesn't expand macros. :( */
 | 
			
		||||
	ot->name = CTX_N_("Operator"/* BLF_I18NCONTEXT_OPERATOR_DEFAULT */, "Toggle System Console");
 | 
			
		||||
	ot->name = CTX_N_("Operator" /* BLF_I18NCONTEXT_OPERATOR_DEFAULT */, "Toggle System Console");
 | 
			
		||||
	ot->idname = "WM_OT_console_toggle";
 | 
			
		||||
	ot->description = N_("Toggle System Console");
 | 
			
		||||
	
 | 
			
		||||
@@ -2869,7 +2869,7 @@ int (*WM_gesture_lasso_path_to_array(bContext *UNUSED(C), wmOperator *op, int *m
 | 
			
		||||
 | 
			
		||||
static int gesture_lasso_exec(bContext *C, wmOperator *op)
 | 
			
		||||
{
 | 
			
		||||
	RNA_BEGIN (op->ptr, itemptr, "path")
 | 
			
		||||
	RNA_BEGIN(op->ptr, itemptr, "path")
 | 
			
		||||
	{
 | 
			
		||||
		float loc[2];
 | 
			
		||||
		
 | 
			
		||||
@@ -3825,7 +3825,8 @@ static void gesture_circle_modal_keymap(wmKeyConfig *keyconf)
 | 
			
		||||
		{GESTURE_MODAL_DESELECT, "DESELECT", 0, "DeSelect", ""},
 | 
			
		||||
		{GESTURE_MODAL_NOP, "NOP", 0, "No Operation", ""},
 | 
			
		||||
 | 
			
		||||
		{0, NULL, 0, NULL, NULL}};
 | 
			
		||||
		{0, NULL, 0, NULL, NULL}
 | 
			
		||||
	};
 | 
			
		||||
 | 
			
		||||
	wmKeyMap *keymap = WM_modalkeymap_get(keyconf, "View3D Gesture Circle");
 | 
			
		||||
 | 
			
		||||
@@ -3873,7 +3874,8 @@ static void gesture_straightline_modal_keymap(wmKeyConfig *keyconf)
 | 
			
		||||
		{GESTURE_MODAL_CANCEL,  "CANCEL", 0, "Cancel", ""},
 | 
			
		||||
		{GESTURE_MODAL_SELECT,  "SELECT", 0, "Select", ""},
 | 
			
		||||
		{GESTURE_MODAL_BEGIN,   "BEGIN", 0, "Begin", ""},
 | 
			
		||||
		{0, NULL, 0, NULL, NULL}};
 | 
			
		||||
		{0, NULL, 0, NULL, NULL}
 | 
			
		||||
	};
 | 
			
		||||
	
 | 
			
		||||
	wmKeyMap *keymap = WM_modalkeymap_get(keyconf, "Gesture Straight Line");
 | 
			
		||||
	
 | 
			
		||||
@@ -3902,7 +3904,8 @@ static void gesture_border_modal_keymap(wmKeyConfig *keyconf)
 | 
			
		||||
		{GESTURE_MODAL_SELECT,  "SELECT", 0, "Select", ""},
 | 
			
		||||
		{GESTURE_MODAL_DESELECT, "DESELECT", 0, "DeSelect", ""},
 | 
			
		||||
		{GESTURE_MODAL_BEGIN,   "BEGIN", 0, "Begin", ""},
 | 
			
		||||
		{0, NULL, 0, NULL, NULL}};
 | 
			
		||||
		{0, NULL, 0, NULL, NULL}
 | 
			
		||||
	};
 | 
			
		||||
 | 
			
		||||
	wmKeyMap *keymap = WM_modalkeymap_get(keyconf, "Gesture Border");
 | 
			
		||||
 | 
			
		||||
@@ -3962,7 +3965,8 @@ static void gesture_zoom_border_modal_keymap(wmKeyConfig *keyconf)
 | 
			
		||||
		{GESTURE_MODAL_IN,  "IN", 0, "In", ""},
 | 
			
		||||
		{GESTURE_MODAL_OUT, "OUT", 0, "Out", ""},
 | 
			
		||||
		{GESTURE_MODAL_BEGIN, "BEGIN", 0, "Begin", ""},
 | 
			
		||||
		{0, NULL, 0, NULL, NULL}};
 | 
			
		||||
		{0, NULL, 0, NULL, NULL}
 | 
			
		||||
	};
 | 
			
		||||
 | 
			
		||||
	wmKeyMap *keymap = WM_modalkeymap_get(keyconf, "Gesture Zoom Border");
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user