[Bf-blender-cvs] [a74e970b1d2] functions: minor improvement

Jacques Lucke noreply at git.blender.org
Fri Mar 1 17:31:56 CET 2019


Commit: a74e970b1d2296df83372939a9b09555bade8d82
Author: Jacques Lucke
Date:   Fri Mar 1 17:30:22 2019 +0100
Branches: functions
https://developer.blender.org/rBa74e970b1d2296df83372939a9b09555bade8d82

minor improvement

===================================================================

M	release/scripts/startup/function_nodes/sockets.py
M	source/blender/modifiers/intern/MOD_functiondeform.c

===================================================================

diff --git a/release/scripts/startup/function_nodes/sockets.py b/release/scripts/startup/function_nodes/sockets.py
index db97cc55ea9..6fda33297d3 100644
--- a/release/scripts/startup/function_nodes/sockets.py
+++ b/release/scripts/startup/function_nodes/sockets.py
@@ -5,7 +5,7 @@ from bpy.props import *
 class FloatSocket(bpy.types.NodeSocket, DataSocket):
     bl_idname = "fn_FloatSocket"
     bl_label = "Float Socket"
-    color = (0, 0, 0, 1)
+    color = (0, 0.3, 0.5, 1)
 
     value: FloatProperty(
         name="Value",
diff --git a/source/blender/modifiers/intern/MOD_functiondeform.c b/source/blender/modifiers/intern/MOD_functiondeform.c
index 50ba14443c6..b92be185472 100644
--- a/source/blender/modifiers/intern/MOD_functiondeform.c
+++ b/source/blender/modifiers/intern/MOD_functiondeform.c
@@ -73,6 +73,7 @@ static void do_deformation(
 {
 	FnFunction fn = get_current_function(fdmd);
 	if (fn == NULL) {
+		modifier_setError(&fdmd->modifier, "Invalid function");
 		return;
 	}



More information about the Bf-blender-cvs mailing list