* Merged changes in the trunk up to revision 33492.
* Fixed a bug in listing all style modules in source/blender/blenlib/intern/bpath.c.
This commit is contained in:
		@@ -83,7 +83,7 @@
 | 
			
		||||
#include "render_intern.h"	// own include
 | 
			
		||||
 | 
			
		||||
/***************************** Updates ***********************************
 | 
			
		||||
 * ED_render_id_flush_update gets called from DAG_id_flush_update, to do *
 | 
			
		||||
 * ED_render_id_flush_update gets called from DAG_id_tag_update, to do *
 | 
			
		||||
 * editor level updates when the ID changes. when these ID blocks are in *
 | 
			
		||||
 * the dependency graph, we can get rid of the manual dependency checks  */
 | 
			
		||||
 | 
			
		||||
@@ -359,7 +359,7 @@ static int material_slot_assign_exec(bContext *C, wmOperator *UNUSED(op))
 | 
			
		||||
		}
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	DAG_id_flush_update(&ob->id, OB_RECALC_DATA);
 | 
			
		||||
	DAG_id_tag_update(&ob->id, OB_RECALC_DATA);
 | 
			
		||||
	WM_event_add_notifier(C, NC_GEOM|ND_DATA, ob->data);
 | 
			
		||||
	
 | 
			
		||||
	return OPERATOR_FINISHED;
 | 
			
		||||
@@ -1228,12 +1228,12 @@ void SCENE_OT_freestyle_modifier_move(wmOperatorType *ot)
 | 
			
		||||
static int texture_slot_move(bContext *C, wmOperator *op)
 | 
			
		||||
{
 | 
			
		||||
	ID *id= CTX_data_pointer_get_type(C, "texture_slot", &RNA_TextureSlot).id.data;
 | 
			
		||||
	Material *ma = (Material *)id;
 | 
			
		||||
 | 
			
		||||
	if(id) {
 | 
			
		||||
		MTex **mtex_ar, *mtexswap;
 | 
			
		||||
		short act;
 | 
			
		||||
		int type= RNA_enum_get(op->ptr, "type");
 | 
			
		||||
		struct AnimData *adt= BKE_animdata_from_id(id);
 | 
			
		||||
 | 
			
		||||
		give_active_mtex(id, &mtex_ar, &act);
 | 
			
		||||
 | 
			
		||||
@@ -1243,9 +1243,9 @@ static int texture_slot_move(bContext *C, wmOperator *op)
 | 
			
		||||
				mtex_ar[act] = mtex_ar[act-1];
 | 
			
		||||
				mtex_ar[act-1] = mtexswap;
 | 
			
		||||
				
 | 
			
		||||
				BKE_animdata_fix_paths_rename(id, ma->adt, "texture_slots", NULL, NULL, act-1, -1, 0);
 | 
			
		||||
				BKE_animdata_fix_paths_rename(id, ma->adt, "texture_slots", NULL, NULL, act, act-1, 0);
 | 
			
		||||
				BKE_animdata_fix_paths_rename(id, ma->adt, "texture_slots", NULL, NULL, -1, act, 0);
 | 
			
		||||
				BKE_animdata_fix_paths_rename(id, adt, "texture_slots", NULL, NULL, act-1, -1, 0);
 | 
			
		||||
				BKE_animdata_fix_paths_rename(id, adt, "texture_slots", NULL, NULL, act, act-1, 0);
 | 
			
		||||
				BKE_animdata_fix_paths_rename(id, adt, "texture_slots", NULL, NULL, -1, act, 0);
 | 
			
		||||
 | 
			
		||||
				if(GS(id->name)==ID_MA) {
 | 
			
		||||
					Material *ma= (Material *)id;
 | 
			
		||||
@@ -1265,9 +1265,9 @@ static int texture_slot_move(bContext *C, wmOperator *op)
 | 
			
		||||
				mtex_ar[act] = mtex_ar[act+1];
 | 
			
		||||
				mtex_ar[act+1] = mtexswap;
 | 
			
		||||
				
 | 
			
		||||
				BKE_animdata_fix_paths_rename(id, ma->adt, "texture_slots", NULL, NULL, act+1, -1, 0);
 | 
			
		||||
				BKE_animdata_fix_paths_rename(id, ma->adt, "texture_slots", NULL, NULL, act, act+1, 0);
 | 
			
		||||
				BKE_animdata_fix_paths_rename(id, ma->adt, "texture_slots", NULL, NULL, -1, act, 0);
 | 
			
		||||
				BKE_animdata_fix_paths_rename(id, adt, "texture_slots", NULL, NULL, act+1, -1, 0);
 | 
			
		||||
				BKE_animdata_fix_paths_rename(id, adt, "texture_slots", NULL, NULL, act, act+1, 0);
 | 
			
		||||
				BKE_animdata_fix_paths_rename(id, adt, "texture_slots", NULL, NULL, -1, act, 0);
 | 
			
		||||
 | 
			
		||||
				if(GS(id->name)==ID_MA) {
 | 
			
		||||
					Material *ma= (Material *)id;
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user