[Bf-blender-cvs] [e97a186] master: Fix cycles standalone compile error of shading system enum change.
Brecht Van Lommel
noreply at git.blender.org
Mon May 19 19:33:31 CEST 2014
Commit: e97a186ffe0c3cca4a9d3edbf899f14a5de44edc
Author: Brecht Van Lommel
Date: Mon May 19 19:17:40 2014 +0200
https://developer.blender.org/rBe97a186ffe0c3cca4a9d3edbf899f14a5de44edc
Fix cycles standalone compile error of shading system enum change.
===================================================================
M intern/cycles/app/cycles_standalone.cpp
===================================================================
diff --git a/intern/cycles/app/cycles_standalone.cpp b/intern/cycles/app/cycles_standalone.cpp
index 7ea1ca2..90333eb 100644
--- a/intern/cycles/app/cycles_standalone.cpp
+++ b/intern/cycles/app/cycles_standalone.cpp
@@ -373,9 +373,9 @@ static void options_parse(int argc, const char **argv)
}
if(ssname == "osl")
- options.scene_params.shadingsystem = SceneParams::OSL;
+ options.scene_params.shadingsystem = SHADINGSYSTEM_OSL;
else if(ssname == "svm")
- options.scene_params.shadingsystem = SceneParams::SVM;
+ options.scene_params.shadingsystem = SHADINGSYSTEM_SVM;
#ifndef WITH_CYCLES_STANDALONE_GUI
options.session_params.background = true;
@@ -408,7 +408,7 @@ static void options_parse(int argc, const char **argv)
fprintf(stderr, "Unknown shading system: %s\n", ssname.c_str());
exit(EXIT_FAILURE);
}
- else if(options.scene_params.shadingsystem == SceneParams::OSL && options.session_params.device.type != DEVICE_CPU) {
+ else if(options.scene_params.shadingsystem == SHADINGSYSTEM_OSL && options.session_params.device.type != DEVICE_CPU) {
fprintf(stderr, "OSL shading system only works with CPU device\n");
exit(EXIT_FAILURE);
}
More information about the Bf-blender-cvs
mailing list