Fix #27803: editing texture did not update compositing nodes using that texture.
This commit is contained in:
@@ -58,6 +58,7 @@
|
|||||||
|
|
||||||
#include "GPU_material.h"
|
#include "GPU_material.h"
|
||||||
|
|
||||||
|
#include "ED_node.h"
|
||||||
#include "ED_render.h"
|
#include "ED_render.h"
|
||||||
|
|
||||||
#include "render_intern.h" // own include
|
#include "render_intern.h" // own include
|
||||||
@@ -115,6 +116,8 @@ static void texture_changed(Main *bmain, Tex *tex)
|
|||||||
Material *ma;
|
Material *ma;
|
||||||
Lamp *la;
|
Lamp *la;
|
||||||
World *wo;
|
World *wo;
|
||||||
|
Scene *scene;
|
||||||
|
bNode *node;
|
||||||
|
|
||||||
/* icons */
|
/* icons */
|
||||||
BKE_icon_changed(BKE_icon_getid(&tex->id));
|
BKE_icon_changed(BKE_icon_getid(&tex->id));
|
||||||
@@ -146,6 +149,16 @@ static void texture_changed(Main *bmain, Tex *tex)
|
|||||||
|
|
||||||
BKE_icon_changed(BKE_icon_getid(&wo->id));
|
BKE_icon_changed(BKE_icon_getid(&wo->id));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* find compositing nodes */
|
||||||
|
for(scene=bmain->scene.first; scene; scene=scene->id.next) {
|
||||||
|
if(scene->use_nodes && scene->nodetree) {
|
||||||
|
for(node=scene->nodetree->nodes.first; node; node=node->next) {
|
||||||
|
if(node->id == &tex->id)
|
||||||
|
ED_node_changed_update(&scene->id, node);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static void lamp_changed(Main *bmain, Lamp *la)
|
static void lamp_changed(Main *bmain, Lamp *la)
|
||||||
|
Reference in New Issue
Block a user