Commit: 4d1bf1472ec6306bc405dc6ff322928e5cab6241
Author: Mai Lavelle
Date:   Wed Aug 10 14:06:43 2016 -0400
Branches: master
https://developer.blender.org/rB4d1bf1472ec6306bc405dc6ff322928e5cab6241

Cycles Standalone: Fix building after microdisp changes

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

M       intern/cycles/app/CMakeLists.txt
M       intern/cycles/app/cycles_xml.cpp

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

diff --git a/intern/cycles/app/CMakeLists.txt b/intern/cycles/app/CMakeLists.txt
index 73dbf16..8cd499b 100644
--- a/intern/cycles/app/CMakeLists.txt
+++ b/intern/cycles/app/CMakeLists.txt
@@ -88,6 +88,9 @@ macro(cycles_target_link_libraries target)
        if(WITH_CYCLES_OSL)
                target_link_libraries(${target} ${OSL_LIBRARIES} 
${LLVM_LIBRARIES})
        endif()
+       if(WITH_CYCLES_OPENSUBDIV)
+               target_link_libraries(${target} ${OPENSUBDIV_LIBRARIES})
+       endif()
        target_link_libraries(
                ${target}
                ${OPENIMAGEIO_LIBRARIES}
diff --git a/intern/cycles/app/cycles_xml.cpp b/intern/cycles/app/cycles_xml.cpp
index 3d3aca3..a540222 100644
--- a/intern/cycles/app/cycles_xml.cpp
+++ b/intern/cycles/app/cycles_xml.cpp
@@ -57,14 +57,12 @@ struct XMLReadState : public XMLReader {
        Shader *shader;         /* current shader */
        string base;            /* base path to current file*/
        float dicing_rate;      /* current dicing rate */
-       Mesh::DisplacementMethod displacement_method;
 
        XMLReadState()
          : scene(NULL),
            smooth(false),
            shader(NULL),
-           dicing_rate(0.0f),
-           displacement_method(Mesh::DISPLACE_BUMP)
+           dicing_rate(0.0f)
        {
                tfm = transform_identity();
        }
@@ -405,8 +403,6 @@ static void xml_read_mesh(const XMLReadState& state, 
pugi::xml_node node)
        int shader = 0;
        bool smooth = state.smooth;
 
-       mesh->displacement_method = state.displacement_method;
-
        /* read vertices and polygons, RIB style */
        vector<float3> P;
        vector<float> UV;
@@ -653,14 +649,6 @@ static void xml_read_state(XMLReadState& state, 
pugi::xml_node node)
                state.smooth = true;
        else if(xml_equal_string(node, "interpolation", "flat"))
                state.smooth = false;
-
-       /* read displacement method */
-       if(xml_equal_string(node, "displacement_method", "true"))
-               state.displacement_method = Mesh::DISPLACE_TRUE;
-       else if(xml_equal_string(node, "displacement_method", "bump"))
-               state.displacement_method = Mesh::DISPLACE_BUMP;
-       else if(xml_equal_string(node, "displacement_method", "both"))
-               state.displacement_method = Mesh::DISPLACE_BOTH;
 }
 
 /* Scene */

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
https://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to