[Bf-extensions-cvs] [fe69dd9] master: re-order helper variables T46971 thanks d01phi
meta-androcto
noreply at git.blender.org
Fri Jan 8 06:00:58 CET 2016
Commit: fe69dd9ee86783786399506905324ef0c4cdd44e
Author: meta-androcto
Date: Fri Jan 8 16:00:28 2016 +1100
Branches: master
https://developer.blender.org/rBAfe69dd9ee86783786399506905324ef0c4cdd44e
re-order helper variables T46971 thanks d01phi
===================================================================
M add_mesh_extra_objects/add_mesh_3d_function_surface.py
===================================================================
diff --git a/add_mesh_extra_objects/add_mesh_3d_function_surface.py b/add_mesh_extra_objects/add_mesh_3d_function_surface.py
index f91aff6..f41673a 100644
--- a/add_mesh_extra_objects/add_mesh_3d_function_surface.py
+++ b/add_mesh_extra_objects/add_mesh_3d_function_surface.py
@@ -278,21 +278,12 @@ def xyz_function_surface_faces(self, x_eq, y_eq, z_eq,
# Try to evaluate the equations.
try:
- a = float(eval(*expr_args_a))
- b = float(eval(*expr_args_b))
- c = float(eval(*expr_args_c))
-
- safe_dict['a'] = a
- safe_dict['b'] = b
- safe_dict['c'] = c
-
- f = float(eval(*expr_args_f))
- g = float(eval(*expr_args_g))
- h = float(eval(*expr_args_h))
-
- safe_dict['f'] = f
- safe_dict['g'] = g
- safe_dict['h'] = h
+ safe_dict['a'] = float(eval(*expr_args_a))
+ safe_dict['b'] = float(eval(*expr_args_b))
+ safe_dict['c'] = float(eval(*expr_args_c))
+ safe_dict['f'] = float(eval(*expr_args_f))
+ safe_dict['g'] = float(eval(*expr_args_g))
+ safe_dict['h'] = float(eval(*expr_args_h))
verts.append((
float(eval(*expr_args_x)),
More information about the Bf-extensions-cvs
mailing list