[Bf-blender-cvs] [69687b7] object_nodes: Removed default case for the opcode switch, all opcodes should be handled explicitly.

Lukas Tönne noreply at git.blender.org
Tue Dec 15 16:28:09 CET 2015


Commit: 69687b7c5cc9e08e0fc5098982daa20dd2127ee1
Author: Lukas Tönne
Date:   Tue Dec 15 07:58:38 2015 +0100
Branches: object_nodes
https://developer.blender.org/rB69687b7c5cc9e08e0fc5098982daa20dd2127ee1

Removed default case for the opcode switch, all opcodes should be handled explicitly.

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

M	source/blender/blenvm/bvm/bvm_eval.cc

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

diff --git a/source/blender/blenvm/bvm/bvm_eval.cc b/source/blender/blenvm/bvm/bvm_eval.cc
index 728faec..25d1f88 100644
--- a/source/blender/blenvm/bvm/bvm_eval.cc
+++ b/source/blender/blenvm/bvm/bvm_eval.cc
@@ -790,6 +790,16 @@ void EvalContext::eval_instructions(const EvalGlobals *globals, const Function *
 				                        oIntensity, oColor, oNormal);
 				break;
 			}
+			case OP_TEX_PROC_BLEND:
+			case OP_TEX_PROC_MAGIC:
+			case OP_TEX_PROC_MARBLE:
+			case OP_TEX_PROC_WOOD:
+			case OP_TEX_PROC_MUSGRAVE:
+			case OP_TEX_PROC_NOISE:
+			case OP_TEX_PROC_STUCCI:
+			case OP_TEX_PROC_DISTNOISE:
+				// TODO
+				break;
 			
 			case OP_OBJECT_LOOKUP: {
 				int key = fn->read_int(&instr);
@@ -896,9 +906,6 @@ void EvalContext::eval_instructions(const EvalGlobals *globals, const Function *
 			
 			case OP_END:
 				return;
-			default:
-				assert(!"Unknown opcode");
-				return;
 		}
 	}
 }




More information about the Bf-blender-cvs mailing list