Commit Graph

20578 Commits

Author SHA1 Message Date
Dalai Felinto
8872cba7e9 Logic Editor: removing usercount for existent datablocks
Using custom setfuncs to avoid increase/decrease of usercount.
That way nothing stops you from removing a material that is used by a
sensor, or a mesh, an action ... (this is how 2.49 works too)

* also some general code cleaning/fix (adding static casts, replacing libaddr_us by lib_addr for dome text (I had no idea how user count worked back then)
2010-05-27 07:37:09 +00:00
Stefan Gartner
0db16ff434 fixed typo that prevented tiff support from being enabled by default 2010-05-27 06:08:48 +00:00
Matt Ebb
f05e79c2ae Warning fixes 2010-05-27 04:54:53 +00:00
Nathan Letwory
31fe70019d Add floating-point exception handler trap for Windows (MSVC). Now you can set breakpoint on fpe_handler on Windows too when debugging floating-point funkyness. 2010-05-26 23:03:25 +00:00
Thomas Dinges
d400c083b8 Tiff Image Format was not displayed in the "file_format" menu. Scons was missing declaration for it. 2010-05-26 20:09:26 +00:00
Campbell Barton
ad02ae8e70 display errors for mesh deform, useful to help find out why mdef isnt being applied. 2010-05-26 18:16:16 +00:00
Campbell Barton
37fab4a3e1 bugfix [#22426] New Thumbnail code crashes when saving
patch from Ken Nign (ken9). (modified slightly)
2010-05-26 10:52:39 +00:00
Matt Ebb
440917cb0b Fix [#22418] Displace Node also makes entire image fuzzy
Changed displace node sampling to use EWA filtering, and removed old hacks 
for calculating derivatives - I think it should be generated correctly now.
2010-05-26 08:06:51 +00:00
Campbell Barton
244cda6f1a NULL check for parent with do_versions(),
this is also done in the 2 others places in the code which get the parent.

 In our case the crash was caused by a group not containing the parent object.
2010-05-25 18:31:36 +00:00
Campbell Barton
1bd58bdbf4 = misc small stuff =
- own mistake in scene help text.
- rename properties to have users as the prefix for better ordering.
- use fixed height for stamp, gives better aligned text.
2010-05-25 17:04:32 +00:00
Dalai Felinto
13f1ce8bdc fix for recent commit "armature conversion to modifier" (armature->deformflag crash on doversion)
reported by Joerg Mueller (Nexyon)
2010-05-25 15:26:12 +00:00
Brecht Van Lommel
f7c4dd6d56 Merge back a few cloth solver fixes from the render branch:
* Disable openmp for dot product, this gives different results each
  time due to non-commutative floating point add.
* Disable openmp with few vertices, the extra thread overhead only
  slows things down then.
* Replace the hack that would divide stepsPerFrame and then set it
  back, now it simply uses the timescale in the collision function.
  This was incorrect because stepsPerFrame is an int, but we don't
  want this to be rounded.
* Extra out of bounds check for hair velocity smoothing grid.
2010-05-25 13:33:59 +00:00
Dalai Felinto
5416f51b7a BGE Fix for: [#22142] Armature deformation does not work in Game Engine. + parent type to modifiers doversion(). Patch by Xavier Thomas (xat)
This fix the problem of not being able to play animations created with Blender 2.5 in BGE. Patch reviewed by Benoit

Added also other parent to modifier conversions as requested by Joshua (aligorith). I didn't bump subversion here, but the patch should work still. If not I'm increasing subversion sooner anyways (tomorrow or by the middle of the week I hope).

I was waiting to commit this one together with the Logic Editor datablock patch (converting material_name DNA properties to struct Material *). However my patch is getting too big and it's better if it's alone (easier to analyze later, eventual fixes, ...)

Mitchell, this commit adds a function that can help hardware skinning - HasArmatureDeformer()
2010-05-25 08:42:11 +00:00
Matt Ebb
e26cc71bd0 Tweaks to copy game properties operator for Dalai 2010-05-25 06:24:45 +00:00
Campbell Barton
c9ac1cc986 fix for 2 warnings & better error checking for the thumbnail loading. 2010-05-25 05:56:31 +00:00
Campbell Barton
c61e25e6ac blend file thumbnailing
- uses same thumbnail system as image browser
- blend files show thumbnails in ubuntu/gnome (freedesktop spec)
- 128x128 images are embedded into the blend file header, a simple loader avoids reading the entire blend file to extract it when generating thumbnails in the file selector.
  When the image browser reads a directory it loads images and creates thumbnails, blend files embedded images are treated just like loading an image.
- the thumbnail is created from the camera view in solid mode. (no camera == no thumbnal).
- readfile/writefile.c: had to use the 'TEST' code name to save thumbnails, anything else would segfault older blender versions on load. (its not used elsewhere).
2010-05-24 21:52:18 +00:00
Damien Plisson
671684c539 OSX Intel: Enable floating point exceptions (for debugging purposes)
From Matt's patch [#22408]
2010-05-24 20:39:01 +00:00
Martin Poirier
bd15f5122d BLI_args cleanup
Adding documentation strings in argument data.

--help is auto generated (options not manually categorized end up in the "others" section at the bottom)
2010-05-24 18:53:45 +00:00
Stefan Gartner
be44a3b7c4 Makefiles: set BF_OPENCOLLADA_LIBS for darwin so that it links when opencollada is enabled 2010-05-24 16:12:58 +00:00
Campbell Barton
0ae967e665 sound sequence strip wasnt handled by path functions correctly.
fixes make relative/absolute for sound sequences.
2010-05-24 14:41:35 +00:00
Campbell Barton
4178b44b35 - correct --help message
- fix implicit decloration of DAG_scene_sort()
- same fix for tiff as made in renderbranch
- rename 'combined peak' --> 'peak' for shorter messages while rendering.
2010-05-24 11:40:45 +00:00
Dalai Felinto
6c01b7b4f8 Logic Editor - fix for Keyboard Sensor + Copy Game Property fancy submenu
* Keyboard Sensor entry keys (key, modifier 1 and 2) can actually be any key
- (you can use Shift as main key, and D as modifier if you want). It's
- strange in my opinion, but it's 2.49 way of doing it.

* Copy Game Property (operator found in SPACE menu)
- reorganized it so the properties appear as submenu items.
- a "little lot" of work for such a small eye-candie but well I hope more
- people like it as well :)

Matt, I had to recreate the dynamic_enum to make it work. I'm count on you
for a real fix for this ;)
2010-05-24 10:38:05 +00:00
Matt Ebb
9777072c0e Fix [#21521] Displacement modifier does not update when modifing texture
Depgraph now handles texture dependencies - textures can affect objects/data via modifiers.
2010-05-24 07:30:50 +00:00
Campbell Barton
a1ada0f21c - remove OBJECT_OT_curve_add
- rename CURVE_OT_primitive_bezier_add --> CURVE_OT_primitive_bezier_curve_add # matches nurbs operator
- rename CURVE_OT_primitive_curve_path_add --> CURVE_OT_primitive_nurbs_path_add
- fix for warnings from 28923
2010-05-24 07:14:55 +00:00
Matt Ebb
5664c0397c Fix [#22278] Colour Balance Node HSV Value slider range is insufficient. 2010-05-24 02:05:23 +00:00
Matt Ebb
4e70cd4a52 Fix [#22382] Text Editor properties pannel scales, not scrolls, with MMW 2010-05-24 01:23:46 +00:00
Campbell Barton
3aab8f245a bugfix [#22398] Black spots on reflecting surfaces when using Environment Light with HDR
acos() was being called with a value around  '-1.000001' because of float precission error.
2010-05-23 21:38:27 +00:00
Campbell Barton
a97904cbcc GNU style long arguments. see help menu.
- swapped meanting of -y/-Y to enable/disable automatic python execution (matches window border -w/-W).
- removed '-B', no reason to have this.
- renamed -fpe to --debug-fpe and added to --help
2010-05-23 20:39:21 +00:00
Campbell Barton
3251d9d523 was curious if makefile still worked. they didnt, found 2 problems
- use our own openjpeg.
- libXmu isnt found/needed on ubuntu 10.04, removing, can add back if it breaks for someone else.
2010-05-23 17:45:08 +00:00
Campbell Barton
f1b9d395e3 - base_object.layers_from_view(view3d), needed for setting local layers
- module 'add_object_utils', so each script doesnt need its own add object code, dealing with layers, scene, cursor location, editmode etc.
2010-05-23 12:14:07 +00:00
Campbell Barton
c249d2b95a view3d - dont draw loose edges with render-override is enabled. 2010-05-23 10:48:35 +00:00
Campbell Barton
a9072177ba opengl render option 'view_context',
When enabled the context's 3D view will be used for rendering.
When disabled a camera view with solid draw mode will be used.

(Needed for batch rendering out animation previews without having to worry about an existing 3D view, its local layer locking and draw type)
2010-05-23 10:47:19 +00:00
Campbell Barton
d1d7c5fbd1 remove some warnings and remove reference to BF_TIFF_LIB in the help message. 2010-05-23 07:53:09 +00:00
Michael Fox
3d417a833c 2010-05-23 02:02:04 +00:00
Campbell Barton
1a2ba8072e bugfix [#22390] Lamp drawing circle bug
was drawing the circle when out of view.
2010-05-22 11:58:21 +00:00
Joshua Leung
63db7c6116 Graph Editor Selection Fix for Durian:
Animators were having trouble selecting keyframes and their handles when zoomed in extremely. This commit seems to fix these issues, which appear to have resulted from some overflowing ints, which gave out-of-view handles priority quite often.
2010-05-22 04:54:34 +00:00
Stefan Gartner
db6a7280ce Makefiles: fix building on linux/ppc 2010-05-21 21:58:37 +00:00
Stefan Gartner
c0a0f2c43e Makefiles: make sure syntax is correct... 2010-05-21 21:26:03 +00:00
Stefan Gartner
bb85284228 Makefiles: statically link tiff libs when WITH_TIFF is set to true, which is the default for all platforms 2010-05-21 21:06:00 +00:00
Sergey Sharybin
9f7c04944a Removed unused argument mmd from multires reshape functions. 2010-05-21 14:18:07 +00:00
Joshua Leung
64d057e887 Bugfix: #22385: Shift-click in NLA does not do 'extend' select
Caused by typo in selection flags code.
2010-05-21 13:01:18 +00:00
Joshua Leung
391c5fba71 Motion Paths: Experimental optimisations from joeedh for speeding up the calculation process
This works by tricking the depsgraph into giving us a smaller list of objects to evaluate, with all the necessary objects + their dependencies at the start of the list. 

On any complicated setup where non-object parameters need to be referred to (i.e. by drivers) to affect an object's transform, these optimisations will fail and the old (slower) method is still the best way (modify the ifdef and comment out the optimise depsgraph call to do so). However, we'll assume that these aren't too common in real productions, so things should be fine with these fixes. If there really is a need for both, then global options to control these things could follow.
2010-05-21 12:17:34 +00:00
Geoffrey Bantle
d5316387a4 -->Fix for bake with faces that have alpha
Baking for faces with alpha only worked if 'clear' was
turned off in bake options.
2010-05-21 09:58:26 +00:00
Campbell Barton
418f1fcba8 libtiff working on linux & cmake again. 2010-05-21 04:23:33 +00:00
Matt Ebb
2be851c966 Blender TIFF support
* Removed dynamic linking libTIFF code and change it to static linking 
(built into the blender executable). Dynamic linking made things a 
fair bit more complicated and wasn't working at all before on OS X - 
the dylib didn't exist and wasn't being copied. Since TIFF is more heavily
depended upon now in Blender, it makes sense to make it less 'optional'
and more in line with other libraries.

I've updated both CMake and scons, and CMake on OS X/64bit works fine.
It's now up to other platform/build system maintainers to enable this for 
their respective platforms (Campbell will check it for linux). For windows,
and non-64bit osx, we need static libtiff libraries in /lib.

I've added options WITH_TIFF for CMake and WITH_BF_TIFF for scons,
so if blender won't build because of this, you should be able to disable 
these options until your build system has been updated.

* Bonus feature: while doing this, I added support for loading 16bit and 32bit 
per channel TIFFs - they get converted to Blender's float buffers. Handy for 
zbrush displacement maps!
2010-05-21 03:25:38 +00:00
Campbell Barton
0ac1564f68 opengl render was freeing all images from the graphics card each update.
with some 4x4k and 4x8k textures this becomes very slow.

only free animated textures (movies and sequences)
2010-05-20 16:08:06 +00:00
Joseph Eagar
f051cd2e89 merged 28885 frame update fix to trunk, slightly updated 2010-05-20 15:18:55 +00:00
Campbell Barton
7c52bc3c21 missed some boundbox's drawing when they shouldnt 2010-05-20 15:04:47 +00:00
Joshua Leung
768c0a4fa0 Quicky untested fix for MotionPath baking bug - heads/tails doesn't work (as reported by William). Hopefully this improves/fixes the problem. 2010-05-20 12:34:32 +00:00
Joshua Leung
89b7d4a5d6 Motion Path Tweaks:
- #22155: keyframe dots not shown on path for bone keyframes that aren't in a group with a matching name. Since this situation is going to become more common in 2.5, I've added an option which will alternatively just search the entire action to find all F-Curves associated with bones. The old option is still the default though for the general cases.

- When keyframe drawing is enabled, the current frame will also be indicated on the path now as a (bigger) green dot, as requested by William. This makes it easier to see the position on the path on the current frame.
2010-05-20 12:31:55 +00:00