Commit Graph

22463 Commits

Author SHA1 Message Date
Campbell Barton
bae43df4ec building the BGE without bullet works again. 2010-10-31 01:04:31 +00:00
Campbell Barton
7f5abb7fe2 dont build blender/kernel if the game engines disabled. 2010-10-31 00:56:46 +00:00
Campbell Barton
b349f7c99d Minor speedups for 3D view text drawing ~10-15% improved frame-rate with particle display.
- ascii text drawing functions, slightly faster since they dont have to do hash lookups & utf8 conversions for each char.
- used ascii drawing functions for the view3d's number display.
- each text item was using fixed 128 chars, now only allocate the string length needed.
2010-10-30 23:02:38 +00:00
Janne Karhu
97d2ca8a33 Sequence editor code cleanup
* The logic in some parts of the sequencer code was rather cryptic, so I cleaned it up a bit.
* There should be no functional changes what so ever from these changes.
2010-10-30 21:55:17 +00:00
Campbell Barton
c2b9dfaff2 fix for own mistake with mat4_to_loc_rot_size(), flipping the scale on negative matrix isn't correct. 2010-10-30 19:52:40 +00:00
Campbell Barton
90e9970094 change mat4_to_eulO, mat3_to_eulO to calculate 2 rotations and return the smallest one.
mat4_to_eul & mat3_to_eul are already working this way.

Without this we get problems with constraints, eg:
 rotation on the Y axis over 90d can be represented by setting the X and Z to -PI, Y would decrease to 0 (infact 180d).
2010-10-30 19:29:11 +00:00
Campbell Barton
44e6026626 the pivot constraint was translating when the pivot was offset along the rotation axis.
fixed by projecting the pivot along the axis of rotation and subtracting this from the pivot.
2010-10-30 18:42:11 +00:00
Janne Karhu
082e9b329d Fix for [#24458] Problem with Axis Angle rotation
* Added checks to handle zero axis vector.
2010-10-30 17:42:08 +00:00
Campbell Barton
001259ccb6 warning/portability fixes. 2010-10-30 17:16:37 +00:00
Janne Karhu
c69f2eaca9 Fix for [#24448] User Preferences - Interface - Mini Axis - Brightness, none working?
* The axis draw function was changed by Campbell recently, but the brightness value was forgotten?
* Solved currently by mapping the brightness value to axis alpha.
2010-10-30 17:13:03 +00:00
Janne Karhu
d29d972e33 Fix for [#23318] SEQUENCER EFFECT: Glow blur amount should be relative 2010-10-30 15:20:48 +00:00
Janne Karhu
ef3e5a3d71 Fix for [#24374] VSE: Reassign Inputs ignores selection order.
* No way currently to know the order of effect inputs, so I added a swap operator for the inputs.
* Also added the effect inputs to the strip property panel (weren't even in rna before). These are not yet editable, but can be very helpful in determining what the inputs are if the strip is too short to see the name in the timeline.
2010-10-30 12:04:00 +00:00
Janne Karhu
a12d0fc836 Fix for [#24409] Particle corruption after rendering with multires
* Also removed some unused flags from the particle modifier.
2010-10-30 10:19:30 +00:00
Janne Karhu
210915e3c7 Fix for items 3 and 8 of [#24443] Trying to bake a smoke simulation crashes blender, and other smoke bugs. 2010-10-30 08:51:50 +00:00
Daniel Salazar
bd8758561f Build fix by Mike S 2010-10-30 02:59:42 +00:00
Campbell Barton
ced06081b8 use PyImport_ExtendInittab for py module initialization rather then adding to sys.modules directly, no functional change. 2010-10-29 22:59:39 +00:00
Campbell Barton
719c941c58 bugfix [#23155] Metastrip contents area allowed to move vertically, occasionally swapping order or overlapping
overlapping tests cant be done recursively
2010-10-29 19:40:45 +00:00
Janne Karhu
f921f91454 Fix for[#24422] Crash when switching to Point Select Mode - particle hair 2010-10-29 12:49:36 +00:00
Janne Karhu
ce74b14850 Fix for [#24430] Hair Dynamics Problem
* Hair added in particle mode didn't have any weights assigned.
2010-10-29 10:31:45 +00:00
Campbell Barton
6a9a49f8af bugfix for grease pencil freeing order.
it was freed before objects which would then decrease its usercount - accessing freed memory.

Also fixed error in own last commit.
2010-10-29 07:11:45 +00:00
Campbell Barton
b5b48bd53a bugfix [#24439] Smear 2D paint fails
small unrelated change: when setting the image type of an image, loop over all its Imbufs and set them.
2010-10-28 19:40:05 +00:00
Campbell Barton
651efb3763 bugfix [#24428] Interface Regions will not keep relative proportions
screen verts were being rounded so resizing a window would end up moving the border in one direction.
for this to work properly we should store floats internally but for now compensate for this.
2010-10-28 17:46:31 +00:00
Campbell Barton
905c5f7948 bugfix/patch [#24431] Fast Gaussian produces wrong results for higher resolutions
report & fix from Martin Lubich (loramel)

Use double rather then floats, this doesn't use significantly more memory (as allocating a double buffer would), other vars in this function were doubles already so may even gain some speed.
2010-10-28 12:29:59 +00:00
Campbell Barton
022e72e148 bugfix [#24432] HS+V color picker 2010-10-28 12:01:02 +00:00
Campbell Barton
e205a9a142 for the color picker functions use UI_GRAD_* constants rather then numbers, no functional change. 2010-10-28 11:49:56 +00:00
Campbell Barton
b7c8df231b partial bugfix [#24425] Blender 2.54 Beta crashes when starting rendering
Fix for one of the causes of crashing.
Applying armature deform wasn't thread safe since the pose bones had deform data written into them when deforming a mesh.

This fixes crashing immediately, on every render for me but blender still crashes calculating the subsurf sometimes.
2010-10-28 10:12:57 +00:00
Campbell Barton
cbb47c1dac bugfix [#24287] Saving the render result through the API does not use the scene settings
use scene alpha and dither settings.
2010-10-27 22:13:05 +00:00
Campbell Barton
35807b20be bugfix [#24418] NLA Crashes blender on Undo 2010-10-27 16:36:25 +00:00
Campbell Barton
fd3532f1a9 bugfix [#24341] Problems running blender headless
bg mode didnt have the screen context callback set. Though this sounds logical, bg mode defines a screen it should be set.
2010-10-27 16:05:31 +00:00
Janne Karhu
7a56940207 Fix for [#24401] Fluid particles leak through walls of moving object 2010-10-27 14:56:53 +00:00
Campbell Barton
2777ba74b0 remove include paths which dont exist, fix for doc upload script which was getting the blender version twice and not working sometimes. 2010-10-27 13:52:12 +00:00
Nathan Letwory
a213dc2679 Commit new splash and bump version. Ready for tagging! 2010-10-27 11:33:04 +00:00
Campbell Barton
d666b4fae5 fix for shift offset in own recent commit for drawing the camera border in camera view. 2010-10-27 11:05:46 +00:00
Nathan Letwory
2f0f257410 Revert /WX here until fix in Blender.py is done. 2010-10-27 10:45:36 +00:00
Campbell Barton
7b8db3fab7 [#24414] Render hanging on small render border.
large render sizes could cause an the threaded tile processor to hang because winx * winy wrapped into a negative value.
also convert winx/winy to floats before multiplying for vector passs.
2010-10-27 10:36:22 +00:00
Campbell Barton
defc47bcb9 recent fix r32626 for [#24339] wasnt correctly clamping the depth rectangle, crashing with grease pencil in some cases. 2010-10-27 08:55:13 +00:00
Campbell Barton
a49d1c20f1 Convenience defines SEP and ALTSEP (python has these), move BLI_*_slash function into path_util.h since these are not fileops. 2010-10-27 06:41:48 +00:00
Campbell Barton
676829ccba workaround for python bug [#24400] If Script is executed with TEXT Editor, it becomes an error.
having the blend file as a part of the __file__ variable is not essential, this is fixed in python 3.2 so add an ifdef and don't use the blend file path for py older then 3.2.
2010-10-27 06:05:22 +00:00
Matt Ebb
27b527c164 Fix [#23972] 2.54 beta crashes when rendering scene with many volume objects
Sticky-taped on more hacks to the already crumbling shading system.
2010-10-27 02:18:24 +00:00
Nathan Letwory
f875777212 Change /WX away for now, some odd thing going on between cloned environments. Need to check after release. 2010-10-26 23:32:59 +00:00
Campbell Barton
e3f8bcbe88 bugfix #24334] Filename looses all parts after a dot when saving
replacing the extension could remove the frame number added to a path when writing images, so just add the extension rather then replacing even though it gives odd names at times. eg: foo.png0001.tga
2010-10-26 23:28:10 +00:00
Matt Ebb
d9757e2705 Don't reset view clipping to 0.1 on entering local view, if you're working on
something close up with < 0.1 clipping, then toggle into local view it gets very 
annoying.
2010-10-26 22:49:49 +00:00
Nathan Letwory
b6880139e2 Revert 32710 for now, otherwise can't test release building with scons. 2010-10-26 21:16:11 +00:00
Campbell Barton
f13417a969 keep the view centered with camera shift, camera view grease pencil intentionally ignores shift. 2010-10-26 20:51:11 +00:00
Campbell Barton
a44f4dd400 dont use const for matrix arg, since it needs to be cast in most cases. 2010-10-26 20:41:16 +00:00
Campbell Barton
d5f66ea925 partial bugfix [#24002] Constraint "Limit rotation" doesn't work properly
this fixes the obvious problems but there are still some rotation jumping when clamping in some cases.
2010-10-26 16:55:38 +00:00
Campbell Barton
f8ec6b8654 move matrix decomposition out of object.c into BLI_math_matrix function: mat4_to_loc_rot_size(), use this now for pchan_apply_mat4() to support negative scale, visual keying now uses compatible eulers.
also added access to this in python's mathutils.Matrix()
 loc, quat, scale = matrix.decompose()
2010-10-26 12:48:07 +00:00
Dalai Felinto
05abc0d3eb blenderplayer building again in CMake+MSVC
(I basically commented out functions already defined in other places)
2010-10-26 01:55:06 +00:00
Campbell Barton
3264ced377 move geometry python module into mathutils.geometry, since it provides utility functions using mathutils types. 2010-10-25 22:44:01 +00:00
Campbell Barton
29605fc06d Added function RNA_property_update_check() to check if an update call is needed,
Simple python benchmark shows this to be about 3x faster in the case where an update isn't needed.

This also speeds up rna function argument parsing, since each arg in a function call did 2 string lookups on the context which were never needed.
2010-10-25 21:57:45 +00:00