Commit Graph

284 Commits

Author SHA1 Message Date
Martin Poirier
185f774385 [#25671] Network Render freezes/blocks blender
Decreasing timeout and increasing refresh period
2011-01-28 00:00:10 +00:00
Martin Poirier
c627e1cbaa Bug [#25696] Netrender feedback fails
Patch by Wintch Analyzer

Someone change an attribute name and this wasn't updated
2011-01-26 20:09:30 +00:00
Martin Poirier
c0bae16dad netrender
Downloading results for jobs from blender now uses the current output settings, it doesn't just download the multilayer exr as it used to.

Render output panel now visible under the jobs panel in client mode.
2011-01-08 19:42:26 +00:00
Guillermo S. Romero
02038dcf57 SVN maintenance. 2010-12-29 19:50:08 +00:00
Martin Poirier
a15f65776f netrender
Bugfix for job cancellation (reported by Carsten in email)
Ended up recoding part of the communication pipe (use json more consistently)
Fix bpy data modifications where it shouldn't happen (as a bonus, thumbnailing is now done out of process)
2010-12-29 18:34:43 +00:00
Martin Poirier
39919c7856 netrender
adjust dependency calculations for cache files of smoke simulations (no more separate paths for low and high). That was changed a while ago in the api, just didn't update yet.
2010-12-27 19:48:45 +00:00
Martin Poirier
595525067e [#25210] Netrender failed and produce ghost slaves
Error when prefixing relative path (probably copy paste error)
2010-12-27 18:53:34 +00:00
Campbell Barton
54343b79e6 remove reload() from builtins since python3 no longer uses this.
use imp.reload now.

Should use import hooks but for now replace imp.reload with our own reload as the builtin reload was replaced before.
2010-12-22 21:39:48 +00:00
Martin Poirier
728ad84c66 Fix polling order for ui panels in netrender.
Was broken by r33071 but order wasn't optimal even before. Should be snappier now (at least only check if correct render engine is selected).
2010-11-25 01:25:47 +00:00
Martin Poirier
2d2a96a334 netrender
Adding retries on initial slave connection.
2010-11-14 22:11:56 +00:00
Martin Poirier
cd71a6d12b [#24602] Netrender master node IP information is reset to [Default] no matter what
[#24601] Net rendering master node fails to send/retrieve files to/from slaves

Both Reported by Dan McGrath

The second might not actually be fixed with this, but now there is better error checking and reporting.

Misc: add poll method in Panel base class, to better support mixins with different inheritance order.
2010-11-09 03:37:51 +00:00
Martin Poirier
58a1ddcc9e netrender
New Feature:
VCS job type
	Render a file (with dependencies) from a version control system (currently only supports subversion, but system is already generic).
	On client, working path, server path and current revision can be guessed from data on disk or entered manually.
	On slave, a working copy is created (if needed) where specified by the job and updated to the proper revision.
	On master web page, job types now appear in the job lists. The job page shows the list of dependencies for "normal" jobs or versioning information for VCS jobs.

	Limitations: Need to have command line tools "svn" and "svnversion". Working copy path must be the same on client and slaves (the client gets the job path relative to the working copy). When guessing, working copy path is set to the folder where the current file is (this can be changed manually after). On the slave, it will update the working copy AS SPECIFIED to the revision, so if that path is too deep, some dependencies will not be updated properly. Doesn't support mixed revisions (and will not give any warnings for that), it will always use the first revision specified by "svnversion"

Bugfix:
Thumbnail generation doesn't chew down memory anymore and always gives correct result (thumbnail on master especially could mess up between jobs with the name result filename)
2010-10-27 18:24:58 +00:00
Nathan Letwory
a90f876948 Fix for fix, not UnicodeEncodingError (where did I get that from?) but UnicodeDecodeError. 2010-10-13 22:20:34 +00:00
Nathan Letwory
a97af1449c Fix UnicodeEncodingError, which prevents netrender, reprojection and playback from working on Windows in certain situations.
Users can set their machine name to something containing non-ascii characters. In Python this currently causes problem due to
socket.gethostname() throwing UnicodeEncodingError. Work around this by not using platform.system() (which uses internally socket.gethostname()).

See http://www.pasteall.org/16215 for backtrace
2010-10-13 21:53:37 +00:00
Martin Poirier
70def5c247 [#24123] Network render gives black images
Error with buffer handling when reading response.

Also fix bug with blendfile relative path (wasn't converting them properly).
2010-10-05 23:14:31 +00:00
Campbell Barton
868fdd80a2 use is rather then == when comparing against None. 2010-09-18 10:43:32 +00:00
Nathan Letwory
4554278a1c Apply patch [#23782] Fix typo in netrender UI
Submitted by Imran Syed (freakabcd)
2010-09-13 22:57:35 +00:00
Martin Poirier
797bb93b21 bugfix for [#23737] reported by Mariusz Maximus
netrender client's functions to get slaves and jobs info didn't work anymore (was reading response content twice).

At the same time, I switched to json for the dump and load, instead of using eval and repr (for obvious security reasons). I should have done this much earlier.
2010-09-12 14:04:54 +00:00
Campbell Barton
63a8056839 - py api splash URL was old, use blender version (menu was ok in the menu)
- netrender reloading fix
2010-09-11 04:23:45 +00:00
Thomas Dinges
cd4fb20b73 Patch [#23759] more replace self.properties.foo --> self.foo for bf-extensions/trunk/py/scripts
by Filiciss Muhgue (filiciss). Thanks a lot!

Part 1: Trunk, second part of patch will be committed to Extensions.
2010-09-10 23:39:43 +00:00
Martin Poirier
3d9cf8b916 Fix bug caused by someone else's error. 2010-09-09 22:39:27 +00:00
Campbell Barton
45cf7633fe remove class methods for defining properties
eg: bpy.types.Scene.BoolProperty()
2010-09-09 06:29:44 +00:00
Thomas Dinges
cc0d31b921 Fix for [#23736] Network render - error in file: release\scripts\io\netrender\client.py + patch.
Patch by Mariusz Maximus (mariuszekpl). Thanks!
2010-09-08 19:49:05 +00:00
Campbell Barton
a89c526a92 finished moving importers and exporters into python packages (as proposed on the mailing list).
- made operator dir's into python packages
- lazy loading of module which do the actual import and export (faster blender load times)
- general maintanance and small fixes.
- bugfix for exporting x3d materials
- leak fix for exporting 3ds
2010-09-01 12:11:34 +00:00
Campbell Barton
afe5c536fa moving import/export scripts into packages (just moving scripts, need to add __init__.py still, temp break import/exporters) 2010-09-01 03:02:30 +00:00
Campbell Barton
16d26b7eb1 cleanup duplicate GPL haeders, blender made 2.4x __bpydoc__ into __doc__, removed version info, (thats what svn logs are for).
also moved create_derived_objects & free_derived_objects into io_utils, used by x3d and 3ds.
2010-09-01 02:48:23 +00:00
Campbell Barton
5036a9d20c use mix-in classes for import export operators, these define the filepath property and invoke function at the moment. 2010-09-01 02:25:49 +00:00
Campbell Barton
dfb8c5974e rna support for passing dynamic sized arrays to rna functions
using this for object.vertex_groups.assign([index list ...], group, weight, mode)
2010-08-31 11:31:21 +00:00
Guillermo S. Romero
eb7c02c2a0 Fix spelling. 2010-08-30 19:51:12 +00:00
Campbell Barton
eab50148e2 - keymap import/export works again (broke with own api changes)
- function renames, move WM functions into collections wm.add_keymap() --> wm.keymaps.new()
  note: new is used for named items in a collection, which return the result.
- Action.get_frame_range() is now a readonly property 'frame_range', floats rather then ints.
2010-08-30 13:50:59 +00:00
Campbell Barton
e5b1e646e6 bugfix [#23573] object rotates when IMAGE_SEARCH is off 2010-08-30 08:44:36 +00:00
Campbell Barton
df4dd70d7b various utf8 compatibility fixes
- OBJ import/export now work with non utf8 paths. (all exporters and importers need changes like this)
- strip non utf8 chars from new ID blocks (also applies to renaming)
- set the file rename button to allow non-utf8 chars.
2010-08-30 08:28:48 +00:00
Campbell Barton
7a7076c878 obj export fix for meshes with no UV textures 2010-08-28 12:15:14 +00:00
Campbell Barton
3ccb30c161 missed this with rna renaming. 2010-08-27 08:21:11 +00:00
Campbell Barton
26e71929d8 bugfix [#23220] .x3d export not exporting UV correctly
- UV texture coords were never written.
- TexFace with no material resulted in an invalid XML file (unclosed tag)
- freewrl wouldn't parse "FALSE", needs to be "false"
- the ID data name was being written as the filename, so in many cases images wouldn't load.
2010-08-27 07:32:58 +00:00
Campbell Barton
fb66c93b90 OBJ export nurbs curves now export again. 2010-08-27 04:43:42 +00:00
Campbell Barton
3cdcff9859 OBJ Import support for nurbs curves back, remove some commented code. 2010-08-27 04:07:12 +00:00
Campbell Barton
b0aa8368fe rna api
obj.add_vertex_group() --> obj.vertex_groups.new()
  obj.add_vertex_to_group() --> obj.vertex_groups.assign()

note: obj.vertex_groups.assign() will be very slow, need to have this take a list rather then 1 vertex at a time.
2010-08-27 02:33:35 +00:00
Campbell Barton
50bce31dbb rna api changes
- mesh.add_geometry(v, e, f)  --> mesh.vertices.add(tot), mesh.edges.add(tot), mesh.faces.add(tot)
- mesh.add_material(mat) --> mesh.materials.link(mat)

changed material.link so it always adds a material even if it exists in the list, this behavior is good for users but not scripts since it can mess up indicies (some formats may have the same material set twice).
2010-08-26 22:44:05 +00:00
Campbell Barton
c09ed77697 bugfix/aviodance for [#23488] bpy.types.Texture.type don´t update the parameters of texture
bpy.data.textures.new() now has a type argument since changing the type after forces the hacky use of recast_type().
2010-08-25 01:20:50 +00:00
Campbell Barton
e7a1acb1f6 patch [#23471] x3d export broken: empty files
from Christopher Creutzig (ccreutzig)
2010-08-25 00:21:34 +00:00
Campbell Barton
f6c323aa42 - move more active properties into their collections:
scene.active_keying_set --> scene.keying_sets.active
  ...same for active_uv_texture. active_vertex_color, active_keyconfig, 

- move mesh.add_uv_layer() and mesh.add_vertex_color() into their collections
  also have them return the newly created layer and dont set the layer active.

  uvtex = mesh.uv_layers.new(name)
  vcol = mesh.vertex_colors.new(name)
2010-08-23 22:16:45 +00:00
Martin Poirier
7f1a08d432 netrender:
terminate can fail if process finished after the call to poll, just pass on error then.
2010-08-21 17:07:19 +00:00
Campbell Barton
e242f66ae6 bugfix for recent renaming [#23400] Unable to import *.3ds/*.obj files with textures 2010-08-21 08:38:29 +00:00
Campbell Barton
6da7684ca6 fixed [#23400] Unable to import *.3ds/*.obj files with textures
changed some rna names to be more consistant
- use_texture -> use_image, since it sets if 'image' is used.
- use_map_color_diff -> use_map_color_diffuse since diffuse is used elsewhere in the same type.
2010-08-20 08:11:26 +00:00
Campbell Barton
4f5f868a52 rna data path names which are more likely to break animations.
Added an operator "Update Animation Data",
access from the search menu to update drivers and fcurves.
2010-08-20 06:09:58 +00:00
Campbell Barton
eee445590a rna naming mainly forBoids 2010-08-19 15:49:30 +00:00
Campbell Barton
8e388a8f49 fixes for recent renaming 2010-08-19 14:43:52 +00:00
Campbell Barton
486b3cd2f5 more rna renaming for non-animated properties: mainly Texface, Particle & Pointcache changes.
Changed some names when applying.
- render was use_render, changed to show_viewport so call it show_render
- texface shadow was use_shadow_face, changed to use_shadow_cast since this only affects casting.
- transp was alpha_mode, changed to blend_type since its similar to other overlay blending where this property name is used.
2010-08-19 12:51:31 +00:00
Campbell Barton
513a907730 rna rename Bone and Text changes 2010-08-18 07:45:32 +00:00