Follow-up to rB647969f9b617: Renamed CTX_data_linestyle_from_scene() to BKE_get_linestyle_from_scene().

This commit is contained in:
2014-07-16 13:53:00 +09:00
parent fc85446c50
commit 4e11fcead0
2 changed files with 3 additions and 2 deletions

View File

@@ -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;

View File

@@ -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;