[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [29459] branches/soc-2010-leifandersen: Merge: svn merge -r 29294:29372 https://svn.blender.org/svnroot/bf-blender /trunk/blender/ .
Leif Andersen
leif.a.andersen at gmail.com
Tue Jun 15 04:24:39 CEST 2010
Revision: 29459
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=29459
Author: leifandersen
Date: 2010-06-15 04:24:32 +0200 (Tue, 15 Jun 2010)
Log Message:
-----------
Merge: svn merge -r 29294:29372 https://svn.blender.org/svnroot/bf-blender/trunk/blender/ .
Modified Paths:
--------------
branches/soc-2010-leifandersen/release/scripts/io/engine_render_pov.py
branches/soc-2010-leifandersen/release/scripts/io/export_3ds.py
branches/soc-2010-leifandersen/release/scripts/io/export_fbx.py
branches/soc-2010-leifandersen/release/scripts/io/export_mdd.py
branches/soc-2010-leifandersen/release/scripts/io/export_obj.py
branches/soc-2010-leifandersen/release/scripts/io/export_ply.py
branches/soc-2010-leifandersen/release/scripts/io/export_x3d.py
branches/soc-2010-leifandersen/release/scripts/io/import_anim_bvh.py
branches/soc-2010-leifandersen/release/scripts/io/import_scene_3ds.py
branches/soc-2010-leifandersen/release/scripts/io/import_scene_obj.py
branches/soc-2010-leifandersen/release/scripts/io/import_shape_mdd.py
branches/soc-2010-leifandersen/release/scripts/io/netrender/operators.py
branches/soc-2010-leifandersen/release/scripts/io/netrender/utils.py
branches/soc-2010-leifandersen/release/scripts/modules/bpy_types.py
branches/soc-2010-leifandersen/release/scripts/modules/graphviz_export.py
branches/soc-2010-leifandersen/release/scripts/modules/rna_prop_ui.py
branches/soc-2010-leifandersen/release/scripts/op/console_python.py
branches/soc-2010-leifandersen/release/scripts/op/image.py
branches/soc-2010-leifandersen/release/scripts/op/presets.py
branches/soc-2010-leifandersen/release/scripts/op/uv.py
branches/soc-2010-leifandersen/release/scripts/op/wm.py
branches/soc-2010-leifandersen/release/scripts/presets/interaction/maya.py
branches/soc-2010-leifandersen/release/scripts/templates/operator.py
branches/soc-2010-leifandersen/release/scripts/ui/properties_data_armature_rigify.py
branches/soc-2010-leifandersen/release/scripts/ui/properties_data_curve.py
branches/soc-2010-leifandersen/release/scripts/ui/properties_data_modifier.py
branches/soc-2010-leifandersen/release/scripts/ui/properties_game.py
branches/soc-2010-leifandersen/release/scripts/ui/properties_object.py
branches/soc-2010-leifandersen/release/scripts/ui/properties_scene.py
branches/soc-2010-leifandersen/release/scripts/ui/space_info.py
branches/soc-2010-leifandersen/release/scripts/ui/space_text.py
branches/soc-2010-leifandersen/release/scripts/ui/space_userpref.py
branches/soc-2010-leifandersen/release/scripts/ui/space_userpref_keymap.py
branches/soc-2010-leifandersen/release/scripts/ui/space_view3d.py
branches/soc-2010-leifandersen/release/scripts/ui/space_view3d_toolbar.py
branches/soc-2010-leifandersen/source/Makefile
branches/soc-2010-leifandersen/source/blender/blenkernel/BKE_idprop.h
branches/soc-2010-leifandersen/source/blender/blenkernel/BKE_softbody.h
branches/soc-2010-leifandersen/source/blender/blenkernel/intern/anim.c
branches/soc-2010-leifandersen/source/blender/blenkernel/intern/cdderivedmesh.c
branches/soc-2010-leifandersen/source/blender/blenkernel/intern/idprop.c
branches/soc-2010-leifandersen/source/blender/blenkernel/intern/lattice.c
branches/soc-2010-leifandersen/source/blender/blenkernel/intern/object.c
branches/soc-2010-leifandersen/source/blender/blenkernel/intern/packedFile.c
branches/soc-2010-leifandersen/source/blender/blenkernel/intern/sequencer.c
branches/soc-2010-leifandersen/source/blender/blenkernel/intern/softbody.c
branches/soc-2010-leifandersen/source/blender/blenkernel/intern/subsurf_ccg.c
branches/soc-2010-leifandersen/source/blender/editors/animation/anim_channels_defines.c
branches/soc-2010-leifandersen/source/blender/editors/curve/curve_intern.h
branches/soc-2010-leifandersen/source/blender/editors/curve/curve_ops.c
branches/soc-2010-leifandersen/source/blender/editors/curve/editcurve.c
branches/soc-2010-leifandersen/source/blender/editors/curve/editfont.c
branches/soc-2010-leifandersen/source/blender/editors/include/ED_object.h
branches/soc-2010-leifandersen/source/blender/editors/mesh/editmesh.c
branches/soc-2010-leifandersen/source/blender/editors/mesh/editmesh_add.c
branches/soc-2010-leifandersen/source/blender/editors/mesh/mesh_data.c
branches/soc-2010-leifandersen/source/blender/editors/object/object_add.c
branches/soc-2010-leifandersen/source/blender/editors/object/object_intern.h
branches/soc-2010-leifandersen/source/blender/editors/object/object_modifier.c
branches/soc-2010-leifandersen/source/blender/editors/object/object_ops.c
branches/soc-2010-leifandersen/source/blender/editors/object/object_transform.c
branches/soc-2010-leifandersen/source/blender/editors/render/render_shading.c
branches/soc-2010-leifandersen/source/blender/editors/screen/screendump.c
branches/soc-2010-leifandersen/source/blender/editors/sculpt_paint/paint_ops.c
branches/soc-2010-leifandersen/source/blender/editors/sculpt_paint/paint_vertex.c
branches/soc-2010-leifandersen/source/blender/editors/sound/sound_ops.c
branches/soc-2010-leifandersen/source/blender/editors/space_buttons/buttons_ops.c
branches/soc-2010-leifandersen/source/blender/editors/space_console/space_console.c
branches/soc-2010-leifandersen/source/blender/editors/space_file/file_ops.c
branches/soc-2010-leifandersen/source/blender/editors/space_file/file_panels.c
branches/soc-2010-leifandersen/source/blender/editors/space_file/filesel.c
branches/soc-2010-leifandersen/source/blender/editors/space_graph/graph_edit.c
branches/soc-2010-leifandersen/source/blender/editors/space_image/image_ops.c
branches/soc-2010-leifandersen/source/blender/editors/space_image/space_image.c
branches/soc-2010-leifandersen/source/blender/editors/space_info/info_ops.c
branches/soc-2010-leifandersen/source/blender/editors/space_node/node_draw.c
branches/soc-2010-leifandersen/source/blender/editors/space_node/node_edit.c
branches/soc-2010-leifandersen/source/blender/editors/space_node/space_node.c
branches/soc-2010-leifandersen/source/blender/editors/space_script/script_edit.c
branches/soc-2010-leifandersen/source/blender/editors/space_script/script_ops.c
branches/soc-2010-leifandersen/source/blender/editors/space_sequencer/sequencer_add.c
branches/soc-2010-leifandersen/source/blender/editors/space_sequencer/space_sequencer.c
branches/soc-2010-leifandersen/source/blender/editors/space_text/space_text.c
branches/soc-2010-leifandersen/source/blender/editors/space_text/text_draw.c
branches/soc-2010-leifandersen/source/blender/editors/space_text/text_ops.c
branches/soc-2010-leifandersen/source/blender/editors/space_view3d/drawobject.c
branches/soc-2010-leifandersen/source/blender/editors/space_view3d/space_view3d.c
branches/soc-2010-leifandersen/source/blender/editors/space_view3d/view3d_ops.c
branches/soc-2010-leifandersen/source/blender/editors/space_view3d/view3d_view.c
branches/soc-2010-leifandersen/source/blender/editors/transform/transform_ops.c
branches/soc-2010-leifandersen/source/blender/makesdna/DNA_camera_types.h
branches/soc-2010-leifandersen/source/blender/makesdna/DNA_lamp_types.h
branches/soc-2010-leifandersen/source/blender/makesdna/DNA_modifier_types.h
branches/soc-2010-leifandersen/source/blender/makesdna/DNA_scene_types.h
branches/soc-2010-leifandersen/source/blender/makesrna/RNA_access.h
branches/soc-2010-leifandersen/source/blender/makesrna/intern/rna_ID.c
branches/soc-2010-leifandersen/source/blender/makesrna/intern/rna_access.c
branches/soc-2010-leifandersen/source/blender/makesrna/intern/rna_curve.c
branches/soc-2010-leifandersen/source/blender/makesrna/intern/rna_image_api.c
branches/soc-2010-leifandersen/source/blender/makesrna/intern/rna_lamp.c
branches/soc-2010-leifandersen/source/blender/makesrna/intern/rna_main_api.c
branches/soc-2010-leifandersen/source/blender/makesrna/intern/rna_mesh.c
branches/soc-2010-leifandersen/source/blender/makesrna/intern/rna_modifier.c
branches/soc-2010-leifandersen/source/blender/makesrna/intern/rna_particle.c
branches/soc-2010-leifandersen/source/blender/makesrna/intern/rna_scene.c
branches/soc-2010-leifandersen/source/blender/makesrna/intern/rna_screen.c
branches/soc-2010-leifandersen/source/blender/makesrna/intern/rna_sequencer.c
branches/soc-2010-leifandersen/source/blender/makesrna/intern/rna_sound.c
branches/soc-2010-leifandersen/source/blender/makesrna/intern/rna_space.c
branches/soc-2010-leifandersen/source/blender/makesrna/intern/rna_text.c
branches/soc-2010-leifandersen/source/blender/modifiers/intern/MOD_hook.c
branches/soc-2010-leifandersen/source/blender/modifiers/intern/MOD_solidify.c
branches/soc-2010-leifandersen/source/blender/python/doc/sphinx_doc_gen.py
branches/soc-2010-leifandersen/source/blender/python/generic/mathutils.c
branches/soc-2010-leifandersen/source/blender/python/intern/bpy.c
branches/soc-2010-leifandersen/source/blender/python/intern/bpy_rna.c
branches/soc-2010-leifandersen/source/blender/render/intern/include/render_types.h
branches/soc-2010-leifandersen/source/blender/windowmanager/WM_api.h
branches/soc-2010-leifandersen/source/blender/windowmanager/WM_types.h
branches/soc-2010-leifandersen/source/blender/windowmanager/intern/wm_event_system.c
branches/soc-2010-leifandersen/source/blender/windowmanager/intern/wm_files.c
branches/soc-2010-leifandersen/source/blender/windowmanager/intern/wm_init_exit.c
branches/soc-2010-leifandersen/source/blender/windowmanager/intern/wm_operators.c
branches/soc-2010-leifandersen/source/blender/windowmanager/intern/wm_window.c
branches/soc-2010-leifandersen/source/gameengine/Converter/KX_BlenderSceneConverter.cpp
branches/soc-2010-leifandersen/source/gameengine/Ketsji/KX_GameObject.cpp
branches/soc-2010-leifandersen/source/gameengine/Ketsji/KX_ObjectActuator.cpp
branches/soc-2010-leifandersen/source/gameengine/PyDoc/bge.types.rst
Modified: branches/soc-2010-leifandersen/release/scripts/io/engine_render_pov.py
===================================================================
--- branches/soc-2010-leifandersen/release/scripts/io/engine_render_pov.py 2010-06-15 02:06:01 UTC (rev 29458)
+++ branches/soc-2010-leifandersen/release/scripts/io/engine_render_pov.py 2010-06-15 02:24:32 UTC (rev 29459)
@@ -762,12 +762,22 @@
if 1:
# TODO, when povray isnt found this gives a cryptic error, would be nice to be able to detect if it exists
- self._process = subprocess.Popen([pov_binary, self._temp_file_ini]) # stdout=subprocess.PIPE, stderr=subprocess.PIPE
+ try:
+ self._process = subprocess.Popen([pov_binary, self._temp_file_ini]) # stdout=subprocess.PIPE, stderr=subprocess.PIPE
+ except OSError:
+ # TODO, report api
+ print("POVRAY: could not execute '%s', possibly povray isn't installed" % pov_binary)
+ import traceback
+ traceback.print_exc()
+ print ("***-DONE-***")
+ return False
+
else:
# This works too but means we have to wait until its done
os.system('%s %s' % (pov_binary, self._temp_file_ini))
print ("***-DONE-***")
+ return True
def _cleanup(self):
for f in (self._temp_file_in, self._temp_file_ini, self._temp_file_out):
@@ -783,8 +793,11 @@
self.update_stats("", "POVRAY: Exporting data from Blender")
self._export(scene)
self.update_stats("", "POVRAY: Parsing File")
- self._render()
+ if not self._render():
+ self.update_stats("", "POVRAY: Not found")
+ return
+
r = scene.render
# compute resolution
Modified: branches/soc-2010-leifandersen/release/scripts/io/export_3ds.py
===================================================================
--- branches/soc-2010-leifandersen/release/scripts/io/export_3ds.py 2010-06-15 02:06:01 UTC (rev 29458)
+++ branches/soc-2010-leifandersen/release/scripts/io/export_3ds.py 2010-06-15 02:24:32 UTC (rev 29459)
@@ -1123,11 +1123,11 @@
# filename = StringProperty(name="File Name", description="File name used for exporting the 3DS file", maxlen= 1024, default= ""),
- path = StringProperty(name="File Path", description="File path used for exporting the 3DS file", maxlen= 1024, default= "")
+ filepath = StringProperty(name="File Path", description="Filepath used for exporting the 3DS file", maxlen= 1024, default= "")
check_existing = BoolProperty(name="Check Existing", description="Check and warn on overwriting existing files", default=True, options={'HIDDEN'})
def execute(self, context):
- save_3ds(self.properties.path, context)
+ save_3ds(self.properties.filepath, context)
return {'FINISHED'}
def invoke(self, context, event):
@@ -1142,7 +1142,7 @@
# Add to a menu
def menu_func(self, context):
default_path = bpy.data.filepath.replace(".blend", ".3ds")
- self.layout.operator(Export3DS.bl_idname, text="3D Studio (.3ds)").path = default_path
+ self.layout.operator(Export3DS.bl_idname, text="3D Studio (.3ds)").filepath = default_path
def register():
Modified: branches/soc-2010-leifandersen/release/scripts/io/export_fbx.py
===================================================================
--- branches/soc-2010-leifandersen/release/scripts/io/export_fbx.py 2010-06-15 02:06:01 UTC (rev 29458)
+++ branches/soc-2010-leifandersen/release/scripts/io/export_fbx.py 2010-06-15 02:24:32 UTC (rev 29459)
@@ -3335,7 +3335,7 @@
# to the class instance from the operator settings before calling.
- path = StringProperty(name="File Path", description="File path used for exporting the FBX file", maxlen= 1024, default="")
+ filepath = StringProperty(name="File Path", description="Filepath used for exporting the FBX file", maxlen= 1024, default="")
check_existing = BoolProperty(name="Check Existing", description="Check and warn on overwriting existing files", default=True, options={'HIDDEN'})
EXP_OBS_SELECTED = BoolProperty(name="Selected Objects", description="Export selected objects on visible layers", default=True)
@@ -3369,8 +3369,8 @@
return context.active_object
def execute(self, context):
- if not self.properties.path:
- raise Exception("path not set")
+ if not self.properties.filepath:
+ raise Exception("filepath not set")
GLOBAL_MATRIX = mtx4_identity
GLOBAL_MATRIX[0][0] = GLOBAL_MATRIX[1][1] = GLOBAL_MATRIX[2][2] = self.properties.TX_SCALE
@@ -3378,7 +3378,7 @@
if self.properties.TX_YROT90: GLOBAL_MATRIX = mtx4_y90n * GLOBAL_MATRIX
if self.properties.TX_ZROT90: GLOBAL_MATRIX = mtx4_z90n * GLOBAL_MATRIX
- write(self.properties.path,
+ write(self.properties.filepath,
None, # XXX
context,
self.properties.EXP_OBS_SELECTED,
@@ -3411,7 +3411,7 @@
# if __name__ == "__main__":
-# bpy.ops.EXPORT_OT_ply(path="/tmp/test.ply")
+# bpy.ops.EXPORT_OT_ply(filepath="/tmp/test.ply")
# NOTES (all line numbers correspond to original export_fbx.py (under release/scripts)
@@ -3439,7 +3439,7 @@
def menu_func(self, context):
default_path = bpy.data.filepath.replace(".blend", ".fbx")
- self.layout.operator(ExportFBX.bl_idname, text="Autodesk FBX (.fbx)").path = default_path
+ self.layout.operator(ExportFBX.bl_idname, text="Autodesk FBX (.fbx)").filepath = default_path
def register():
Modified: branches/soc-2010-leifandersen/release/scripts/io/export_mdd.py
===================================================================
--- branches/soc-2010-leifandersen/release/scripts/io/export_mdd.py 2010-06-15 02:06:01 UTC (rev 29458)
+++ branches/soc-2010-leifandersen/release/scripts/io/export_mdd.py 2010-06-15 02:24:32 UTC (rev 29459)
@@ -159,7 +159,7 @@
# List of operator properties, the attributes will be assigned
# to the class instance from the operator settings before calling.
- path = StringProperty(name="File Path", description="File path used for exporting the MDD file", maxlen=1024)
+ filepath = StringProperty(name="File Path", description="Filepath used for exporting the MDD file", maxlen=1024)
check_existing = BoolProperty(name="Check Existing", description="Check and warn on overwriting existing files", default=True, options={'HIDDEN'})
fps = IntProperty(name="Frames Per Second", description="Number of frames/second", min=minfps, max=maxfps, default=25)
frame_start = IntProperty(name="Start Frame", description="Start frame for baking", min=minframe, max=maxframe, default=1)
@@ -170,9 +170,9 @@
return (ob and ob.type == 'MESH')
def execute(self, context):
- if not self.properties.path:
+ if not self.properties.filepath:
raise Exception("filename not set")
- write(self.properties.path, context.scene, context.active_object,
+ write(self.properties.filepath, context.scene, context.active_object,
self.properties.frame_start, self.properties.frame_end, self.properties.fps)
return {'FINISHED'}
@@ -184,7 +184,7 @@
def menu_func(self, context):
default_path = bpy.data.filepath.replace(".blend", ".mdd")
- self.layout.operator(ExportMDD.bl_idname, text="Lightwave Point Cache (.mdd)").path = default_path
+ self.layout.operator(ExportMDD.bl_idname, text="Lightwave Point Cache (.mdd)").filepath = default_path
def register():
Modified: branches/soc-2010-leifandersen/release/scripts/io/export_obj.py
===================================================================
--- branches/soc-2010-leifandersen/release/scripts/io/export_obj.py 2010-06-15 02:06:01 UTC (rev 29458)
+++ branches/soc-2010-leifandersen/release/scripts/io/export_obj.py 2010-06-15 02:24:32 UTC (rev 29459)
@@ -900,7 +900,7 @@
# List of operator properties, the attributes will be assigned
# to the class instance from the operator settings before calling.
- path = StringProperty(name="File Path", description="File path used for exporting the OBJ file", maxlen= 1024, default= "")
+ filepath = StringProperty(name="File Path", description="Filepath used for exporting the OBJ file", maxlen= 1024, default= "")
check_existing = BoolProperty(name="Check Existing", description="Check and warn on overwriting existing files", default=True, options={'HIDDEN'})
# context group
@@ -932,11 +932,11 @@
def execute(self, context):
- path = self.properties.path
- if not path.lower().endswith(".obj"):
- path += ".obj"
+ filepath = self.properties.filepath
+ if not filepath.lower().endswith(".obj"):
+ filepath += ".obj"
- do_export(path, context,
+ do_export(filepath, context,
EXPORT_TRI=self.properties.use_triangles,
EXPORT_EDGES=self.properties.use_edges,
EXPORT_NORMALS=self.properties.use_normals,
@@ -965,7 +965,7 @@
def menu_func(self, context):
default_path = bpy.data.filepath.replace(".blend", ".obj")
- self.layout.operator(ExportOBJ.bl_idname, text="Wavefront (.obj)").path = default_path
+ self.layout.operator(ExportOBJ.bl_idname, text="Wavefront (.obj)").filepath = default_path
def register():
Modified: branches/soc-2010-leifandersen/release/scripts/io/export_ply.py
===================================================================
--- branches/soc-2010-leifandersen/release/scripts/io/export_ply.py 2010-06-15 02:06:01 UTC (rev 29458)
+++ branches/soc-2010-leifandersen/release/scripts/io/export_ply.py 2010-06-15 02:24:32 UTC (rev 29459)
@@ -267,7 +267,7 @@
# to the class instance from the operator settings before calling.
- path = StringProperty(name="File Path", description="File path used for exporting the PLY file", maxlen=1024, default="")
+ filepath = StringProperty(name="File Path", description="Filepath used for exporting the PLY file", maxlen=1024, default="")
check_existing = BoolProperty(name="Check Existing", description="Check and warn on overwriting existing files", default=True, options={'HIDDEN'})
@@ Diff output truncated at 10240 characters. @@
More information about the Bf-blender-cvs
mailing list