Commit Graph

18391 Commits

Author SHA1 Message Date
Campbell Barton
1286a16ea4 [#20450] Crash before creating a volumetric material.
- volumetric material must be traceable
2010-01-03 05:40:33 +00:00
Campbell Barton
28c137a8eb bugfix [#20510] .blog file causes crash (again rev25592) 2010-01-03 05:34:53 +00:00
Campbell Barton
833ec130a3 bugfix [#20528] Crash when applying scale to a Bezier curve 2010-01-03 05:08:56 +00:00
Campbell Barton
bf6fc75161 freeing particle modifier would access freed memory (only to tak the psys to be deleted), set to NULL after freeing and check before tagging. 2010-01-03 04:35:51 +00:00
Campbell Barton
eb7ac3146e - disallow the change the layer operator in localview.
- toggle setting the layers (mainly useful when accessed from the keys)
2010-01-03 04:21:40 +00:00
Campbell Barton
a93e2d3603 [#20455] Spotlight halo with deep buffers: render crashes 2010-01-03 03:18:48 +00:00
Campbell Barton
5266969546 fix for [#20499] Smoot view doesn't work for all view keys. 2010-01-03 03:01:46 +00:00
Campbell Barton
310a84f13e bugfix [#20534] Blender crashes throghout compositing 2010-01-03 02:53:01 +00:00
Campbell Barton
6b9d65549b bugfix [#20542] Crash 2.50a0 Click event in Console window Report mode 2010-01-03 02:34:00 +00:00
Campbell Barton
9bda43ed27 - WM_OT_context_cycle_int wasnt working (also wasnt used anywhere)
- remove console zoom operator, use WM_OT_context_cycle_int instead.
- use WM_OT_context_cycle_int for text editor zoom also (Ctrl +/- and Ctrl+MouseWheel)
2010-01-03 02:24:53 +00:00
Campbell Barton
e2f5d31453 dont draw object centers when drawing the depth buffer, grease pencil would get its depth messed up by object centers when with 'Surface' mode.
Also fix own error with drawing grease pencil depths, wasnt setting v3d->zbuf back to its original value.
2010-01-03 01:55:20 +00:00
Campbell Barton
9cb975bd9b grease pencil depth option 'Stroke Endpoints' works well when painting onto mesh surfaces as well as other grease pencil lines. change ui to show this. 2010-01-02 23:56:14 +00:00
Campbell Barton
04d0261c37 new python submodule. eg.
from bpy.app import binary_path, version, version_string, home

can add constant variables from blender here as needed (maybe functions too... bpy.app.memory_usage() ?)
2010-01-02 23:14:01 +00:00
Campbell Barton
e7d863cee5 editbone.transform(matrix) function, requested by Cessen.
Also added matrix.median_scale attribute to get the average scale from the matrix, use for scaling bone envalopes.
2010-01-02 22:47:56 +00:00
Campbell Barton
cf7b19c0ba fix for mistake in last commit. also forgot to call RNA_parameter_list_end() in some places, (ok the function does nothing now, but some day it might do) 2010-01-02 19:01:19 +00:00
Campbell Barton
cef8b2088f sphinx support for documenting multiple return values 2010-01-02 18:55:07 +00:00
Campbell Barton
78b2eb8d3c PyRna float/bool/int slicing.
- fixed slice assignment.
- fix for slowdown where getting a slice would get the entire array and free it for every item in the array (malloc and free for arrays >32).
- fix for thick wrapped returning an array referencing the original pointer when coercing into a mathutils type failed.

TODO
- slice assignment currently only sypports lists.
- dimensions are ignored for multidimensional arrays.
2010-01-02 17:33:44 +00:00
Campbell Barton
c1b0239f06 RNA Ray casting function for python access, uses BVH acceleration structure (same as shrink wrap), very fast & useful for object placing scripts.
Python Example.
 hit_location, hit_normal, face_index = object.ray_cast(ray_start, ray_end)

- first rna func to use multiple return values
- currently casts in object space, may want to cast in worldspace too.
2010-01-02 15:31:02 +00:00
Campbell Barton
e83940d994 support for multiple return values from rna functions & support for returning arrays, (no functions are using this yet).
patch from Elia Sarti, (vekoon) with some modifications mainly for the python api.

- multiple values are returned as a typle in the order that are defined.
- added support for registered types returning multiple arguments (untested).
- renamed func->ret --> func->c_ret, since this only defines what the C function returns.
2010-01-02 10:42:38 +00:00
Stefan Gartner
382e52e5c7 OS X Makefiles: append -DPARALLEL=1 to CPPFLAGS when compiling with OPENMP 2010-01-02 09:32:32 +00:00
Joshua Leung
a7d268d38e Cessen Rigging Request: "Copy Transforms" Constraint
This constraint simply copies the transformation matrix of the target, and assigns it to the owner.
2010-01-02 04:14:17 +00:00
Guillermo S. Romero
bbac520987 Add audaspace includes. And some reorg/cleaning. 2010-01-02 01:33:03 +00:00
Guillermo S. Romero
028d7998ba SVN maintenance. 2010-01-02 00:47:26 +00:00
Joshua Leung
55a62b34c1 Fix for 25657 - wrong var was getting used ("path" NOT "ghost") 2010-01-01 21:53:55 +00:00
Campbell Barton
a81a98148a made region type into an enum 2010-01-01 20:50:58 +00:00
Campbell Barton
a2fe0cf5d7 armature ghost stepsize was not initialized, Aligorith: can you check this is correct?
remove other small warnings
2010-01-01 19:10:31 +00:00
Joerg Mueller
637873deb0 Added another three effects that you can use with the Sound to F-Curve modifier, have fun! 2010-01-01 18:45:21 +00:00
Campbell Barton
d0ec3f428c - grease pencil option to only use the endpoint depths. this makes drawing shapes in 3D easier since it wont stick to every depth the line passes through.
- use a 8x8 area when finding stroke depths since thin lines can get ignored if the point is not close enough to them.
2010-01-01 17:48:48 +00:00
Campbell Barton
7cc72d5830 grease pencil stroke depth option, rather then snapping to geometry you can draw over existing grease pencil lines. makes it easuer to draw 3D shapes with grease pencil. 2010-01-01 16:46:27 +00:00
Campbell Barton
11e529f4f7 made the array interpolation function from last commit into a generic function
/* given an array with some invalid values this function interpolates valid values
 * replacing the invalid ones */
int interp_sparse_array(float *array, int list_size, float skipval)
2010-01-01 15:57:17 +00:00
Damien Plisson
4ab4d2dd20 Fix some build warnings 2010-01-01 15:48:14 +00:00
Campbell Barton
30aff3b830 - grease pencil mode for drawing onto geometry (using the z-buffer), access in the 3D view panel.
- account for parts of the line going off into infinity by making the stroke stretch between the last valid depth values (like an elastic band), if the endpoints are not over any geometry then use the closest valid depth.
2010-01-01 15:05:31 +00:00
Campbell Barton
422335b3a2 fix for crash in recent ghost/do_versions 2010-01-01 14:04:39 +00:00
Campbell Barton
053093fb7a displacement was crashing because of the improved bumpmap. now its skipped when the ShaderInput's verts are not set. 2010-01-01 13:56:30 +00:00
Joshua Leung
e6f26957ea Cleanup of MotionPaths+Ghosts (AnimViz) - Part 1
This commit sets up some of the groundwork necessary to extend the animation visualisation capabilities, previously only available for bones in PoseMode, to Objects as well. Also, some of the other goals of this refactor is to make future visualisation goodies (i.e. editable paths) more feasible...
(There's really nothing to see here yet. The following log notes are really just for my own reference to keep track of things.)

Currently, the following things have been done:
* New datastructures + settings have been tidied up, ready for usage
* Added these new types into the Object and PoseBone code as necessary, with freeing/adding/copying accounted for
* File IO code for the new data, including version patching to convert the old system to the new one.
* Set up the drawing system for motionpaths based on the old armature path drawing code. Armatures still draw using the old system, since the two systems use different storage systems.
* Started setting up the motionpath 'baking' code, but the core of this still needs to be coded...

Next Steps (after some semi-urgent Durian Driver changes):
* Port the ghosting/onionskinning code over too
* Finish motionpath baking code
* RNA wrapping for the new types
* Hooking up all the new code into the operators, etc.
2010-01-01 12:24:16 +00:00
Joshua Leung
8ac9ec4156 Scons compiling fix fox neXyon's new-year audio commit 2010-01-01 09:41:53 +00:00
Joerg Mueller
174eccf078 Huge new year audio commit!
* Refactored the whole audaspace library to use float as sample format over all readers.
* Added new Readers like the linear resampler, envelope, lowpass, highpass and butterworth.
* Note: The butterworth filter isn't working correctly, some bug in there... Maybe also true for the envelope.
* Added a sound to f-curve operator that behaves mostly like the soundtracker script of technoestupido.
2010-01-01 05:09:30 +00:00
Joshua Leung
3fa927a42e DopeSheet/Action Editor: Fixed operator name that did not get correctly during the operator renaming fixes done by Campbell's script 2009-12-31 23:56:45 +00:00
Dalai Felinto
09994fb444 BGE: negative lamp last fix - Texture Face. I'm going to commit it to 2.49 too.
The files I used for test are here: http://blenderecia.orgfree.com/blender/tmp/neg_light.zip
2009-12-31 18:51:02 +00:00
Campbell Barton
b800fbd13f - modify the baking layout to be more compact and made a bit more sense.
- add back quad split order option.

note: tested displacement baking and found it matches 2.4x. there is still a missing check which ignores the active object when baking selected to active but Im not sure in what cases this is needed.
2009-12-31 10:07:59 +00:00
Dalai Felinto
bccda9857b BGE bugfix: [#19476] Negative Lamps in BGE Do Not Function (in GLSL)
this bug was introduced in Blender 2.49 (probably my own fault, in other part of the code though while fixing support for IPOs in GLSL Lamps).

The good news is: GLSL Lamps looks in BGE like working perfectly now.

Multitexture on the other hand is not supporting "negative" lamps (with the checkbox option on).

From my search (svn blame+log) it looks like multitexture never had negative lamp working. Actually in Blender 2.34 when this was introduced in BGE (maybe in Blender as well?) I couldn't see negative lamps working either. It's hard to test this with Blender 2.34 though (it even crash with my test file).
2009-12-31 07:17:14 +00:00
Dalai Felinto
3e5b6ed469 BGE: (1) stereo tooltip update (2) blenderplayer working with new stereo setting (3) blenderplayer building again (patch by Mitchell Stokes - Moguri)
(1) the new text suggest what was the default eye separation before. Now I'm confident that changing the eye separation for the UI is a good move
(2) no big deal here. It's not reading the parameter from the command line. But does it ever read it?
(3) stubs.c update and glew linking statically. patch by Mitchell Stokes, thanks for that. 

And now we finish 2009 with a building blenderplayer =D
2009-12-31 04:56:23 +00:00
Campbell Barton
453945e9e3 remove python api cruft from custom operator registration 2009-12-30 22:51:44 +00:00
Campbell Barton
26de5e5f2b fix crash on baking from selected to active, however need to validate this against 2.4x to make sure displacement for eg gives the same results 2009-12-30 22:35:22 +00:00
Martin Poirier
891e87f8f8 Fix crash in View -> Navigation menu (not all view3d regions have a regionview3d, especially not menus. Meh, stupid work around) 2009-12-30 22:23:50 +00:00
Martin Poirier
b00cddeb66 Macro registration using the normal rna registration methods (like operators).
bpy.types.register(MacroClass)

instead of

bpy.ops.add_macro(MacroClass)

The rest is unchanged.

Also remove some now unused code for the old registration methods (there's still some remaining).
2009-12-30 22:14:32 +00:00
Campbell Barton
3702998fec python macro operators didnt have a compatible draw function assigned. also remove duplicate define. 2009-12-30 20:15:28 +00:00
Thomas Dinges
9bf3ea58d2 Scons missed include for pthread. 2009-12-30 19:55:41 +00:00
Kent Mein
c96305cea1 Fix for poor negliected Makefiles.
Kent
2009-12-30 16:18:06 +00:00
Janne Karhu
74829be79a Fix for [#20430] Boids options for Flying and climbing do not work
* Boids didn't yet use global gravity
2009-12-30 15:58:59 +00:00