Merged changes in the trunk up to revision 25508.
authorTamito Kajiyama <rd6t-kjym@asahi-net.or.jp>
Mon, 21 Dec 2009 22:38:06 +0000 (22:38 +0000)
committerTamito Kajiyama <rd6t-kjym@asahi-net.or.jp>
Mon, 21 Dec 2009 22:38:06 +0000 (22:38 +0000)
17 files changed:
1  2 
release/scripts/ui/properties_render.py
source/blender/blenkernel/CMakeLists.txt
source/blender/blenkernel/SConscript
source/blender/blenkernel/intern/scene.c
source/blender/blenloader/intern/readfile.c
source/blender/blenloader/intern/writefile.c
source/blender/editors/CMakeLists.txt
source/blender/editors/render/render_shading.c
source/blender/editors/screen/screen_ops.c
source/blender/freestyle/intern/application/AppConfig.cpp
source/blender/makesdna/DNA_scene_types.h
source/blender/makesrna/RNA_access.h
source/blender/makesrna/intern/rna_scene.c
source/blender/python/intern/bpy_interface.c
source/blender/render/SConscript
source/blender/render/intern/source/pipeline.c
source/creator/creator.c

index b3fb33534a87644d92000a868f01030e56426b36,ed703a0403e0a64b32cb12a67ef63e66ea80010f..e436ee8a8d4dc92d98f9aa0f4580cbfaeef32aa0
@@@ -146,47 -145,20 +146,47 @@@ class RENDER_PT_layers(RenderButtonsPan
          col.prop(rl, "pass_diffuse")
          row = col.row()
          row.prop(rl, "pass_specular")
-         row.prop(rl, "pass_specular_exclude", text="", icon='ICON_X')
+         row.prop(rl, "pass_specular_exclude", text="", icon='X')
          row = col.row()
          row.prop(rl, "pass_shadow")
-         row.prop(rl, "pass_shadow_exclude", text="", icon='ICON_X')
+         row.prop(rl, "pass_shadow_exclude", text="", icon='X')
          row = col.row()
          row.prop(rl, "pass_ao")
-         row.prop(rl, "pass_ao_exclude", text="", icon='ICON_X')
+         row.prop(rl, "pass_ao_exclude", text="", icon='X')
          row = col.row()
          row.prop(rl, "pass_reflection")
-         row.prop(rl, "pass_reflection_exclude", text="", icon='ICON_X')
+         row.prop(rl, "pass_reflection_exclude", text="", icon='X')
          row = col.row()
          row.prop(rl, "pass_refraction")
-         row.prop(rl, "pass_refraction_exclude", text="", icon='ICON_X')
+         row.prop(rl, "pass_refraction_exclude", text="", icon='X')
  
-                     row.operator("scene.freestyle_module_remove", icon='ICON_X', text="")
-                     props = row.operator("scene.freestyle_module_move_up", icon='VICON_MOVE_UP', text="")
 +        if rl.freestyle:
 +            layout.separator()
 +
 +            split = layout.split()
 +
 +            col = split.column()
 +            col.label(text="Freestyle:")
 +            freestyle = rl.freestyle_settings
 +            col.prop(freestyle, "sphere_radius", text="Sphere Radius")
 +            col.prop(freestyle, "ridges_and_valleys", text="Ridges and Valleys")
 +            col.prop(freestyle, "suggestive_contours", text="Suggestive Contours")
 +            col.prop(freestyle, "dkr_epsilon", text="Dkr Epsilon")
 +
 +            col.operator("scene.freestyle_module_add", text="Add Style Module")
 +
 +            for i, module in enumerate(freestyle.modules):
 +                    box = layout.box()
 +                    box.set_context_pointer("freestyle_module", module)
 +                    row = box.row(align=True)
 +                    row.prop(module, "is_displayed", text="")
 +                    row.prop(module, "module_path", text="")
-                     props = row.operator("scene.freestyle_module_move_down", icon='VICON_MOVE_DOWN', text="")
++                    row.operator("scene.freestyle_module_remove", icon='X', text="")
++                    props = row.operator("scene.freestyle_module_move_up", icon='MOVE_UP_VEC', text="")
 +                    props.active = (i > 0)
++                    props = row.operator("scene.freestyle_module_move_down", icon='MOVE_DOWN_VEC', text="")
 +                    props.active = (i < len(freestyle.modules) - 1)
 +
  
  class RENDER_PT_shading(RenderButtonsPanel):
      bl_label = "Shading"
index fdd3a9e52765ff3b6d9ad701470fa9e58c982cd0,508ed58165f4e9d92db160417bffbf5e5bc9a4f7..d8201c277f701c6f671de22c30bf904f87f91c39
@@@ -3,10 -3,11 +3,11 @@@ Import ('env'
  
  sources = env.Glob('intern/*.c')
  
- incs = '. #/intern/guardedalloc #/intern/memutil ../editors/include ../blenlib ../blenfont ../makesdna'
+ incs = '. #/intern/guardedalloc #/intern/memutil ../editors/include'
+ incs += ' ../blenlib ../blenfont ../makesdna ../windowmanager'
  incs += ' ../render/extern/include #/intern/decimation/extern ../makesrna'
  incs += ' ../imbuf ../ikplugin ../avi #/intern/elbeem/extern ../nodes'
 -incs += ' #/intern/iksolver/extern ../blenloader'
 +incs += ' #/intern/iksolver/extern ../blenloader ../freestyle'
  incs += ' #/extern/bullet2/src'
  incs += ' #/intern/opennl/extern #/intern/bsp/extern'
  incs += ' ../gpu #/extern/glew/include'
index 79b791c898fab41610a95ec5bd5fd55ad252f075,7512a7ebb025f206d64a081c80c60a358f08d3ec..a81dc3a2ff02e4424319915959bc16f39d493324
@@@ -4451,11 -4477,7 +4478,11 @@@ static void direct_link_scene(FileData 
        link_list(fd, &(sce->markers));
        link_list(fd, &(sce->transform_spaces));
        link_list(fd, &(sce->r.layers));
-       
 +      for(srl= sce->r.layers.first; srl; srl= srl->next) {
 +              link_list(fd, &(srl->freestyleConfig.modules));
 +      }
 +      
        sce->nodetree= newdataadr(fd, sce->nodetree);
        if(sce->nodetree)
                direct_link_nodetree(fd, sce->nodetree);
Simple merge
index 78eb0963013e4da17ae58e1af303d3040578f34e,fe1587a965d609d265652532484aee057e7bfb63..d58e85030014b47e3898df45952f258f1e8402ca
@@@ -3019,10 -3087,7 +3090,10 @@@ static int screen_render_invoke(bContex
        
        /* handle UI stuff */
        WM_cursor_wait(1);
+       
 +      /* inform Freestyle of the context */
 +      FRS_set_context(C);
 +
        /* flush multires changes (for sculpt) */
        multires_force_update(CTX_data_active_object(C));
        
index 9ef14321624f264c5ddc8bbd9c6a5fd41d639f3e,0000000000000000000000000000000000000000..761f0104dd16fba03ad15cfae5ddb8dd781f893c
mode 100755,000000..100755
--- /dev/null
@@@ -1,92 -1,0 +1,92 @@@
-       #include "BLI_util.h"
 +//
 +//  Copyright (C) : Please refer to the COPYRIGHT file distributed 
 +//   with this source distribution. 
 +//
 +//  This program is free software; you can redistribute it and/or
 +//  modify it under the terms of the GNU General Public License
 +//  as published by the Free Software Foundation; either version 2
 +//  of the License, or (at your option) any later version.
 +//
 +//  This program is distributed in the hope that it will be useful,
 +//  but WITHOUT ANY WARRANTY; without even the implied warranty of
 +//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 +//  GNU General Public License for more details.
 +//
 +//  You should have received a copy of the GNU General Public License
 +//  along with this program; if not, write to the Free Software
 +//  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 +//
 +///////////////////////////////////////////////////////////////////////////////
 +
 +#include "AppConfig.h"
 +#include <iostream>
 +
 +#include "../system/StringUtils.h"
 +using namespace std;
 +
 +extern "C" {
++      #include "BLI_path_util.h"
 +}
 +
 +namespace Config {
 +Path* Path::_pInstance = 0;
 +Path::Path() {
 +      // get the root directory
 +      //soc
 +      setRootDir( BLI_gethome_folder("scripts", BLI_GETHOME_ALL) );
 +
 +      _pInstance = this;
 +}
 +void Path::setRootDir(const string& iRootDir) {
 +      _ProjectDir = iRootDir + string(DIR_SEP.c_str()) + "freestyle";
 +      _ModelsPath = "";
 +      _PatternsPath = _ProjectDir + string(DIR_SEP.c_str()) + "data"
 +                      + string(DIR_SEP.c_str()) + "textures" + string(DIR_SEP.c_str())
 +                      + "variation_patterns" + string(DIR_SEP.c_str());
 +      _BrushesPath = _ProjectDir + string(DIR_SEP.c_str()) + "data"
 +                      + string(DIR_SEP.c_str()) + "textures" + string(DIR_SEP.c_str())
 +                      + "brushes" + string(DIR_SEP.c_str());
 +      _PythonPath = _ProjectDir + string(DIR_SEP.c_str())
 ++ "style_modules" + string(DIR_SEP.c_str()) ;
 +      if (getenv("PYTHONPATH")) {
 +              _PythonPath += string(PATH_SEP.c_str()) + string(getenv("PYTHONPATH"));
 +      }
 +#ifdef WIN32
 +      _BrowserCmd = "C:\\Program Files\\Internet Explorer\\iexplore.exe %s";
 +#else
 +      _BrowserCmd = "mozilla %s";
 +#endif
 +      _HelpIndexPath = _ProjectDir + string(DIR_SEP.c_str()) + "doc"
 +                      + string(DIR_SEP.c_str()) + "html" + string(DIR_SEP.c_str())
 +                      + "index.html";
 +      _EnvMapDir = _ProjectDir + string(DIR_SEP.c_str()) + "data"
 +                      + string(DIR_SEP.c_str()) + "env_map" + string(DIR_SEP.c_str());
 +      _MapsDir = _ProjectDir + string(DIR_SEP.c_str()) + "data"
 +                      + string(DIR_SEP.c_str()) + "maps" + string(DIR_SEP.c_str());
 +}
 +void Path::setHomeDir(const string& iHomeDir) {
 +      _HomeDir = iHomeDir;
 +}
 +Path::~Path() {
 +      _pInstance = 0;
 +}
 +Path* Path::getInstance() {
 +      return _pInstance;
 +}
 +string Path::getEnvVar(const string& iEnvVarName) {
 +      string value;
 +      if (!getenv(StringUtils::toAscii(iEnvVarName).c_str() ) ) {
 +              cerr << "Warning: You may want to set the $"
 +                              << StringUtils::toAscii(iEnvVarName)
 +                              << " environment variable to use Freestyle." << endl
 +                              << "         Otherwise, the current directory will be used instead."
 +                              << endl;
 +              value = ".";
 +      } else {
 +              value = getenv(StringUtils::toAscii(iEnvVarName).c_str() );
 +      }
 +      return value;
 +}
 +
 +} // End of namepace Config
 +
Simple merge
index 2327f4e069e1406df21b3bb78dcabe3f334a58f5,d9a074c1470296d51587800cb35f483bfbb4239e..f3a997aa5bf023d1ff2c9df732a6f52f2eef7bf4
@@@ -1,6 -1,13 +1,13 @@@
  #!/usr/bin/python
  Import ('env')
  
 -incs += ' ../include ../blenloader ../../../intern/smoke/extern'
+ sources = env.Glob('intern/source/*.c')
+ raysources = env.Glob('intern/raytrace/*.cpp')
+ incs = 'intern/include #/intern/guardedalloc ../blenlib ../makesdna ../makesrna'
+ incs += ' extern/include ../blenkernel ../radiosity/extern/include ../imbuf'
++incs += ' ../include ../blenloader ../freestyle ../../../intern/smoke/extern'
  cflags = env['CCFLAGS']
  cxxflags = env['CXXFLAGS']
  
Simple merge