Renamed CTX_data_linestyle_from_scene() to BKE_get_linestyle_from_scene().
[blender.git] / source / blender / editors / space_buttons / buttons_context.c
index 5fcceb25e4ea1400b4f90cacd7b66b8928545120..fc9ac27b5b8df17c9ab237b4fd5153026237e833 100644 (file)
@@ -55,6 +55,7 @@
 #include "BKE_particle.h"
 #include "BKE_screen.h"
 #include "BKE_texture.h"
 #include "BKE_particle.h"
 #include "BKE_screen.h"
 #include "BKE_texture.h"
+#include "BKE_linestyle.h"
 
 #include "RNA_access.h"
 
 
 #include "RNA_access.h"
 
@@ -153,7 +154,7 @@ static int buttons_context_path_linestyle(ButsContextPath *path)
        /* if we have a scene, use the lineset's linestyle */
        else if (buttons_context_path_scene(path)) {
                scene = path->ptr[path->len - 1].data;
        /* if we have a scene, use the lineset's linestyle */
        else if (buttons_context_path_scene(path)) {
                scene = path->ptr[path->len - 1].data;
-               linestyle = CTX_data_linestyle_from_scene(scene);
+               linestyle = BKE_get_linestyle_from_scene(scene);
                if (linestyle) {
                        RNA_id_pointer_create(&linestyle->id, &path->ptr[path->len]);
                        path->len++;
                if (linestyle) {
                        RNA_id_pointer_create(&linestyle->id, &path->ptr[path->len]);
                        path->len++;