Follow-up to rB647969f9b617: Renamed CTX_data_linestyle_from_scene() to BKE_get_linestyle_from_scene().
This commit is contained in:
@@ -736,7 +736,7 @@ void FRS_move_active_lineset_down(FreestyleConfig *config)
|
||||
|
||||
Material *FRS_create_stroke_material(bContext *C, Main *bmain, Scene *scene)
|
||||
{
|
||||
FreestyleLineStyle *linestyle = CTX_data_linestyle_from_scene(scene);
|
||||
FreestyleLineStyle *linestyle = BKE_get_linestyle_from_scene(scene);
|
||||
|
||||
if (!linestyle) {
|
||||
cout << "FRS_create_stroke_material: No active line style in the current scene" << endl;
|
||||
|
||||
@@ -49,6 +49,7 @@
|
||||
|
||||
#include "BKE_context.h"
|
||||
#include "BKE_global.h"
|
||||
#include "BKE_linestyle.h"
|
||||
#include "BKE_main.h"
|
||||
#include "BKE_node.h"
|
||||
#include "BKE_scene.h"
|
||||
@@ -100,7 +101,7 @@ static void shader_get_from_context(const bContext *C, bNodeTreeType *UNUSED(tre
|
||||
}
|
||||
#ifdef WITH_FREESTYLE
|
||||
else if (snode->shaderfrom == SNODE_SHADER_LINESTYLE) {
|
||||
FreestyleLineStyle *linestyle = CTX_data_linestyle_from_scene(scene);
|
||||
FreestyleLineStyle *linestyle = BKE_get_linestyle_from_scene(scene);
|
||||
if (linestyle) {
|
||||
*r_from = NULL;
|
||||
*r_id = &linestyle->id;
|
||||
|
||||
Reference in New Issue
Block a user