Commit Graph

22661 Commits

Author SHA1 Message Date
Campbell Barton
1f2469d992 bugfix [#24508] Render and changing scenes crashes.
The scenes 'Render' is kept by blender while blender runs but the callbacks were not cleared when the render was done.
In this case the callback would reference a freed render job.

This isn't normally a problem because on re-rendering new callbacks are set, however the sequencer can render a previously rendered scene without setting up callbacks.
Simple fix is to to dummy callbacks applied onto the scenes 'Render' struct once its finished.
2010-11-03 11:14:02 +00:00
Campbell Barton
c31536fc53 bugfix [#24445] NLA reverse option flickers
UnMapping the reversed NLA strips timing was incorrect.
2010-11-03 08:46:14 +00:00
Campbell Barton
fe8d5b81b0 use c90 compatible static initializers. 2010-11-03 06:31:53 +00:00
Campbell Barton
de8e066a1c bugfix [#24505] Python command bpy.ops.transform.rotate(...) does not follow axis=(...) attribute
the axis was being constantly re-initialized from the view.
2010-11-03 04:38:07 +00:00
Campbell Barton
3db9233ae5 bugfix [#24483] Link/Append File Browser Typo 2010-11-03 03:45:09 +00:00
Campbell Barton
44f3f03f02 paint/face mask lasso select was checking for uv coords, which isnt needed, also make a mistake on this check last commit. 2010-11-03 02:50:05 +00:00
Campbell Barton
bcd2d60557 added metaball lasso select. 2010-11-03 02:28:11 +00:00
Campbell Barton
6b767b8018 fix [#24499] Consistency Issue with LassoSelect/ExtendOption
Added extend option to lasso. 

also...
- selecting bones wasn't checking their layer of if they were hidden in a number of places.
- fixed memory leak.

small unrealed changes
- added PBONE_VISIBLE macro
- renamed functions used for paint selectoin from *_tface to paintface_*. sine they no longer have anything todo with tface's.
- removed scanfill include from BLI_blenlib.h, this is only used in very few places and quite specific.


Noticed lasso select is broken for metaballs and face mask mode but this has been the case for a while, will look into it next.
2010-11-03 01:56:02 +00:00
Campbell Barton
1c5f72f273 - remove BLANK* from rna icon enum, would string search this list for every python icon button call, enum from 818 down to 444.
- remove unused space image members
2010-11-02 21:43:47 +00:00
Janne Karhu
09435ec149 Oops, particle collisions didn't take simulation subframes into account at all.
* This caused nearly all particles to leak through the collision surface if simulation subframes were used and the collision object was moving.
* In addition to fixing this I also did some more cleanup of the collision code and refined some of the comments.
2010-11-02 21:16:41 +00:00
Janne Karhu
130088300b Fix for [#24501] Apeend object with cloth sim from another file crash. 2010-11-02 15:21:43 +00:00
Campbell Barton
369a5cc29e fix for compiling with the c90 standard, support for non-static variable initializers is a c99 feature. 2010-11-02 13:12:30 +00:00
Brecht Van Lommel
5d7ed88f17 Fix #24436: GLSL + Node material gives wrong color. 2010-11-02 12:18:49 +00:00
Brecht Van Lommel
f3e3d59f04 Fix #24435: GLSL 3D view lacks refresh on node setups, patch by Lukas Toenne. 2010-11-02 11:41:25 +00:00
Campbell Barton
342e79461b bugfix [#24398] Select Nth
- use first selected if non active (clears confusion since this isn't at all clear)
- dont take unselected into account when calculating connectivity, would mess up in many cases.
2010-11-02 11:14:04 +00:00
Sergey Sharybin
5fb6c942b7 Fix #24485: Applying scale to multires object end up in a blender crash
Fixed multires_apply_smat to work properly with different current and
total subdivision levels.
2010-11-02 10:55:49 +00:00
Campbell Barton
f130d4c0a7 bugfix [#24455] Scene is left at last rendered frame from rendering an animation 2010-11-02 09:34:32 +00:00
Thomas Dinges
ca3ade6ac4 Patch [#24497] Fix for [#24484] Right Ctrl for snapping by Alexander Kuznetsov. Thank you!
This fixes [#24484] Right Hand Ctrl key none functional for snapping?
2010-11-02 09:04:57 +00:00
Guillermo S. Romero
562731fc12 Recommit sharp font optional code as all Freetype should be above 2.1.10 now.
If still fails, check & update Freetype (OS one or Blender's lib/).
2010-11-01 23:26:04 +00:00
Brecht Van Lommel
aef7d52ea7 Fix #24464: missing icons. It looks like there were some icons still named
from the 2.4 them but they were never in the 2.5 theme, so marked as BLANK
now.
2010-11-01 22:28:58 +00:00
Brecht Van Lommel
6ee21ceefb Fix #24489: decimate modifier: undecimated is "ratio 1.00%".
Patch by Emil Brink, thanks!
2010-11-01 21:53:35 +00:00
Brecht Van Lommel
5ef1cf4b19 Fix for some enum property identifiers, that were not using upper case
with underscore, or were simply not set correctly after code copy/paste.
2010-11-01 21:45:38 +00:00
Peter Schlaile
f890b00851 Sequencer: fix for the fix of: #23318
also known as: broken multicam strip caused by other fix.

Calculated render_size where it belongs (within the glow effect) and 
restored old functionality.

also: renamed render_size to preview_render_size at all relevant places, 
where the naming wasn't used correctly.

Hopefully it's now a little bit more clear. 

render_size := render size from scene (just rescales width/height)
preview_render_size := preview render size from sequencer preview, 
  controls the resolution and the use of sequencer proxy sources
2010-11-01 18:55:12 +00:00
Peter Schlaile
1b18ea5823 == FFMPEG ==
This fixes a rather subtle seeking issue with ffmpeg and Sony 
XDCAM-footage.

Problem is: MPEG2 streams within an MP4 container can contain a start 
time - at several places. There is a starttime within the video 
and audio streams and one within the container.

FFMpeg commandline tool only uses the container starttime and we used 
the stream starttime. 

The world would be a better place, if those two timestamps always match 
up, since in XDCAM-footage those two starttimes differ in 4 
frames - and the container has the right one.

We now always use the container start time as ffmpeg commandline tool 
does (in the hope, that there is a good explaination for this and this 
is the right thing(tm) to do).

I tested this also with HDV footage, which seems to work with the new 
code, too.

Additional fix: disabled seek_by_bytes again, since it will only work 
correctly, if ffmpeg guessed the HDV bitrate right (which it doesn't). 
If you have seeking issues with HDV and have an older version of ffmpeg 
installed, please upgrade, newer versions have some fixes in them.
2010-11-01 18:13:10 +00:00
Janne Karhu
3a8c37bb24 "Fix" for [#22537] motion blur render result incorrect when full sample anti-aliasing is selected
* FSA and motion blur can't work nicely together the way they're currently implemented, so I disabled this in the ui and code.
* FSA is used if both are selected.
* Also changed the name "Full Sample Motion Blur" to "Sampled Motion Blur" to avoid confusion with full sample anti-aliasing.
2010-11-01 13:51:11 +00:00
Campbell Barton
e40b4d80c6 improvement to axis/angle gimble conversion added last commit. fixed flipping problems and enabled for pose bones. 2010-11-01 11:50:15 +00:00
Thomas Dinges
a55627339c Temporary revert recent changes in blf_glyph.c until its fixed.
>> Compile failure on windows platform (see ML for Errors).

SVN Revert of Revisions: 32805, 32804 and 32802
2010-11-01 10:48:48 +00:00
Campbell Barton
08fbe28464 bugfix [#24480] Axis Angle + manipulators: bad behaviour 2010-11-01 10:29:05 +00:00
Thomas Dinges
84a3282933 Patch: [#24479] fix for bug 24474, by Anthony Edlin. Thanks!
This fixes [#24474] Pressing <Shift Alt A> or clicking "Play Animation ... reverse = True" does not play animation backwards
2010-11-01 10:22:46 +00:00
Campbell Barton
daa4feaaea bugfix [#24477] Can easily create bones with duplicate names
- fixed this error 7 different functions (deform groups, uv layers & similar).
- support for numbers over 999.
- renamed splitIDname() to BLI_split_name_num(), moved to BLI_path_utils
2010-11-01 07:19:41 +00:00
Campbell Barton
8bbcef4c7a bugfix [#24449] User Preferences - Interface - Manipulator 2010-11-01 02:22:20 +00:00
Guillermo S. Romero
f1e10b0935 Fix silly column paste. 2010-11-01 01:48:43 +00:00
Campbell Barton
d9a7358b4c bugfix [#24462] UV Layouts saved as PNG results in two files (one is 0 KB, other has corrupted filename) 2010-11-01 01:46:26 +00:00
Guillermo S. Romero
29bcda37fd Provide a way to get non-AA font rendering, which some see as "sharper".
"Configuration" by recompilation for now (feel free to code that).
2010-11-01 01:45:40 +00:00
Mitchell Stokes
a6007d1a5c A couple of changes to 2D filters to make adding new built-in ones nicer:
* Built-in filters were not being analyzed, which means no depth or luminance textures for them
  * Removed an unnecessary if that becomes really hairy when new built-in filters are added (ie, when filters are defined beyond the value used for custom filters)
2010-11-01 00:15:12 +00:00
Guillermo S. Romero
604f0ae301 Fix name, update others to match style. 2010-11-01 00:09:33 +00:00
Campbell Barton
24cd951f42 bugfix [#24470] Ctrl+Tweak cutting connections fail 2010-10-31 22:19:52 +00:00
Campbell Barton
3367ef8b65 initialize structs to zero rather then using memset(). 2010-10-31 15:39:37 +00:00
Campbell Barton
184b5fd6db bugfix [#24466] Selecting of object with pattern leads to strange behavior
The undo problem was caused by python operators returning 'RUNNING_MODAL' rather then the return value from wm.invoke_props_popup(self, event) - 'FINISHED'.

This was done because returning FINISHED would free the operator causing the buttons redo handler to try and run a freed operator and crash.

So the real fix is to disallow any operators to use wm.invoke_props_popup(self, event) if they dont have the REGISTER option enabled, fixing the crash and redo problem.
2010-10-31 14:43:30 +00:00
Campbell Barton
6b677a2616 own recent commit broke this python import:
from mathutils.geometry import PolyFill

I couldn't find a way for python's inittab to do this so just inserting mathutils.geometry into sys.modules manually.
2010-10-31 13:17:39 +00:00
Brecht Van Lommel
3a3ac0de8f Fix #23283: crash exiting blender player, IMB_exit got called twice. 2010-10-31 12:43:42 +00:00
Brecht Van Lommel
12812e494f Fix cmake building of blender player. 2010-10-31 12:31:15 +00:00
Dalai Felinto
89ceb3b87a bugfix: "glsl lamp not (directly) updated when there is no material in the object" reported by Olivier Amrein
lamps require a depsgraph update.
There is no more need to ED_render_id_flush_update because this is called by the DAG_id_flush_update.
help (and the right fix) from Brecht.
2010-10-31 12:12:57 +00:00
Brecht Van Lommel
06abc862b0 Fix crashing running read full sample layers operator. 2010-10-31 11:51:10 +00:00
Nathan Letwory
beb5f84991 stdint include needed on non-msvc platforms 2010-10-31 08:42:42 +00:00
Campbell Barton
0876fce009 rename and negate DISABLE_PYTHON --> WITH_PYTHON 2010-10-31 04:11:39 +00:00
Campbell Barton
50dab4fc37 rename definition for enabling the game engine GAMEBLENDER==1 --> WITH_GAMEENGINE 2010-10-31 03:20:33 +00:00
Nathan Letwory
73f21f20b7 Lock to Cursor
Patch by Dan Eicher. In 3dview properties you can enable this. Rotating view then uses cursor as pivot point. Note that with this option enabled just relocating the 3d cursor also changes the 3dview.

Sebastian König: "Now the 3d cursor is actually useful" (sitting next to me while applying patch at bconf hostel)
2010-10-31 01:18:26 +00:00
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
Campbell Barton
82fd7f21fc curve widget bounds were not properly clipped causing drawing artifacts in other views. 2010-10-25 18:12:28 +00:00
Janne Karhu
7869c7ee85 Fix for [#24383] Particles using "circle" as display, are disabled on opening file 2010-10-25 17:20:12 +00:00
Campbell Barton
e002bcd876 bugfix [#22277] Absolute Shapekeys crash (in BGE)
running a shape actuator on a softbody would crash because it assumed the deformer was a BL_MeshDeformer.
Added TODO note, since it would be nice if softbody would work with shape keys too.
2010-10-25 17:08:40 +00:00
Campbell Barton
0dde63c044 bugfix [#24377] Bad frames drawn 2010-10-25 13:37:49 +00:00
Sergey Sharybin
d327f08f9a Fix #24255: Multires object gets modified when joining it to another multires object.
Fix #22018: joining objects with different multires levels loses levesl from the higher multires object

- Synchronyze mulires subdivision level when joining objects
- Apply scale on MDISP layer when applying scale
- Re-calculate MDISP when joining scaled objects
2010-10-25 08:03:05 +00:00
Nathan Letwory
01cdd515fb Compile fix after math API change from r32694 2010-10-25 07:36:14 +00:00
Nathan Letwory
a1336fd6f1 Add missing includes to remedy implicit declaration of functions. 2010-10-25 07:28:57 +00:00
Guillermo S. Romero
b1a6ffbc37 SVN maintenance. 2010-10-25 07:19:43 +00:00
Campbell Barton
904f82b49f bugfix [#24376] Fly mode disturbs the rotation or scale of the camera object 2010-10-25 07:12:29 +00:00
Campbell Barton
3320b6fdd6 missed adding the file when moving fly mode. 2010-10-25 07:09:38 +00:00
Campbell Barton
1713f07e5e first part of bugfix [#24376] Fly mode disturbs the rotation or scale of the camera object
object_apply_mat4 was incorrectly negating the matrix values,

This worked in most cases but even when it worked would end up with negative scales too often.
now when no negative scale is used they will all stay positive and from my tests it works in all cases now.
2010-10-25 06:59:18 +00:00
Nicholas Bishop
acef2ca4c5 Closing #24367 (Incorrect behaviour for Optimal Display option) and reopening #22634 (sculpting/multires and wireframe display mode glitches)
* Reverting my earlier changes to subsurf edge drawing; seems to be causing more bugs than the minor bug it fixed.
2010-10-25 02:58:32 +00:00
Campbell Barton
2882c4b6ef move fly mode operator into its own file. 2010-10-25 02:30:16 +00:00
Nathan Letwory
a301d2c898 Remove the unsigned, since totbits is signed too. 2010-10-24 12:54:52 +00:00
Nathan Letwory
715fa82769 Make sure separation between modifier keys is communicated from GHOST upwards too (BGE at least uses this). 2010-10-24 12:45:47 +00:00
Campbell Barton
989a610fc8 rna rename: use_inherit_rotate -> use_inherit_rotation, noticed _rotate is not used like this much elsewhere in rna. 2010-10-24 08:06:19 +00:00
Damien Plisson
deb058a669 Collada : header files order dependency was making osx compile fail 2010-10-24 07:55:56 +00:00
Campbell Barton
619a8b6952 bugfix [#24357] Font folder can be specified but is not opened
- open operator was incorrectly checking if the font path was set.
- rna ID editable check was also incorrect, checking the ID name rather then the filename.
- use define FO_BUILTIN_NAME rather then "<builtin>".
2010-10-24 07:02:19 +00:00
Campbell Barton
1424a171a4 bugfix [#21097] Rotating multiple bones with non-local location behaves incorrectly.
- rotation and bone scaling with Durian feature 'Local Location' would fail to correctly translate the bone
because a different matrix is needed for translation and rotation.
2010-10-24 06:16:44 +00:00
Campbell Barton
c7ff23cc34 Added CMake macro REMOVE_STRICT_FLAGS(), this means developers can build with -Werror in their CMAKE_C_FLAGS_DEBUG (so all warnings give errors).
but external libs which we don't maintain & generated code will have -Werror removed.

This is GCC only, MSVC can be added easily.
2010-10-24 03:57:07 +00:00
Nicholas Bishop
ea5670f4b5 Fixed bug #24364, "subsurf modifier causes wire-only meshes to disappear in object mode."
* Re-added code to draw loose edge
2010-10-24 02:02:37 +00:00
Guillermo S. Romero
1de1d6537e Fully disable AUD's FFTW3 usage. 2010-10-24 00:09:23 +00:00
Campbell Barton
2d9be2226a warning fixes. 2010-10-23 16:03:31 +00:00
Campbell Barton
05b297c52f CMake options to disable Decimate and Boolean Modifiers: WITH_MOD_BOOLEAN, WITH_MOD_DECIMATE, renamed WITH_FLUID to WITH_MOD_FLUID 2010-10-23 15:40:13 +00:00
Campbell Barton
6669c0ad5b fix for implicit declaration 2010-10-23 12:09:24 +00:00
Brecht Van Lommel
06385cfc9d Fix #24363: trying to separate mesh with shape keys didn't display warning
when it failed due to there being shape keys.
2010-10-23 10:41:28 +00:00
Campbell Barton
563e3c9405 rename rna property Bone.use_hinge to use_inherit_rotate because use_hinge was inverted - Enabled by default but not a hinge.
this also matches 'use_inherit_scale'
2010-10-23 10:06:40 +00:00
Campbell Barton
f4415ce84a - CMake now only uses SOURCE_GROUP with MSVC lib configuration, saves recursive header search when not using msvc.
- uv layout export wasn't setting the default filename.
2010-10-23 04:18:53 +00:00
Campbell Barton
c6976e7351 use explicit file paths for CMake rather then globing, This is recommended by cmake devs.
globbing vs explicit is discussed here.
http://www.cmake.org/pipermail/cmake/2008-December/025694.html

Practical implications are:
- developers need to keep CMakeLists.txt files up to date.
- Users wont get strange linking errors if they build after a file is added, since CMake detects CMakeLists.txt is modified and automatically reconfigure.
2010-10-23 04:05:55 +00:00
Janne Karhu
3161622f4c Fix for [#24361] Only first frame is working with glow in Render Animation using Video Editing - Effect - Glow 2010-10-22 22:31:40 +00:00
Nathan Letwory
dad9423dd6 Include BLI_storage.h where zlib.h is also included. Some systems need _LARGESOURCE64_FILE defined for zlib to not throw errors. 2010-10-22 14:04:54 +00:00
Campbell Barton
65797d285f bpy.props: replace common error checks with macros, ugly but better then duplicates. 2010-10-22 13:02:41 +00:00
Joshua Leung
d3ac70909e Bugfix #20708: segmented bones don't work well with spline IK
There was a slight discreptancy between the tail values calculated on the spline before the head was displaced for the "chain offset" option and after this operation. However, only the original version got set. 

This small difference resulted in B-Bones thinking that the endpoints of the bones were in places that they were not in, hence causing the curly patterns observed in the report.
2010-10-22 11:38:10 +00:00
Nathan Letwory
c821fc85d3 index for openmp loop needs to be signed int. 2010-10-22 10:18:58 +00:00
Nathan Letwory
6540bb1375 Add some missing const's 2010-10-22 10:17:55 +00:00
Campbell Barton
347900a3d6 [#21331] Pose snap not working in some cases
The bone option 'Local Location' (flag BONE_NO_LOCAL_LOCATION) makes the location apply differently so snap to cursor failed for pose bones.
2010-10-22 06:25:14 +00:00
Campbell Barton
8aa4f5ea14 fix for BGE define in recent math changes. 2010-10-22 06:00:12 +00:00
Campbell Barton
2fe940f8df Fix for snapping pose bones with axis-angle rotation.
- armature_mat_pose_to_bone() was missing axis-angle check.
- added loc_axisangle_size_to_mat4() for completeness.
- use 'const' prefix where possible in math rotation functions.
2010-10-22 03:56:50 +00:00
Campbell Barton
bcac1def4c eulO_to_quat wasn't functional for XZY, YXZ, ZYX rotation orders.
it also modified the input rotation value which isn't expected for these functions.
2010-10-22 03:27:01 +00:00
Campbell Barton
97784a7186 fix for warnings & detecting opensource nouveau drivers. 2010-10-22 01:06:21 +00:00
Campbell Barton
e51bb1fb0e bugfix/workaround for ../../radeon/radeon_cs_gem.c:181: cs_gem_write_reloc: Assertion `boi->space_accounted' failed. [#656100]
reported on launchpad.

calling glClear(GL_COLOR_BUFFER_BIT); was crashing blender,
since this is only used to blank the window before its drawn, disable for opensource ATI drivers.
2010-10-22 00:29:56 +00:00
Campbell Barton
8259321a5f fix warnings 2010-10-21 22:45:54 +00:00
Campbell Barton
b00f8e8de8 limit adjustment from AlexKu, subdiv smooth soft limit of 1. 2010-10-21 22:30:34 +00:00
Janne Karhu
cfcf82803a Temporary fix for sequencer bugs #22925, #21429, #21783, #24165
* This fix is really only a bandage, as the underlying issue is that sequencer preview render doesn't yet use the job system.
* The sequencer preview can start a full render of the scene, and this can collide with other preview/actual renders in many cases.
* Drawing the sequencer preview is now disabled when an other render is in progress, but the sequence preview rendering could have already been started before the other render, so this doesn't really fix anything.
* For now only OpenGL rendering can be used for the sequencer preview reliably until it's reimplemented using the job system.
* Using the job system in the future can handle the clashes between different renders properly and will give users a nice progress bar to indicate something is happening while the preview is recalculated.
2010-10-21 17:00:38 +00:00
Campbell Barton
59d1740671 bugfix [#24331] EdgeSlide not as flawless as 2.49's
ensure minimum mouse distance for sliding edge verts else it becomes unusable.
2010-10-21 13:33:51 +00:00
Campbell Barton
bef30b270b bugfix [#24342] Wrong Bubble description when creation add-on without python comment on class 2010-10-21 11:20:44 +00:00
Nathan Letwory
19068ba38a Fix [#24348] Release confirm confusing
Reported by Dennis Dillert

A bit clearer wording.
2010-10-21 11:19:15 +00:00
Joshua Leung
76a0de3a0d Changes to "evaluation time" for Curves:
After discussions with Campbell regarding #24336 and #24309, we've decided to make this property for curves to only get set when an F-Curve explicitly animates it. 

As a consequence...
- ALL OLD FILES using follow-path constraints that depended on this changed behaviour will currently need manual patching to add an appropriate F-Curve
- Ctrl-P (Parenting to Curves -> Follow Path option) will now automatically create such F-Curves mimicking the old behaviour so that creating camera-following-path setups still works smoothly.
- Directly adding a Follow Path constraint bypasses this, so you'll need to manually add such F-Curves if you need them.

The main problem with the old approach was that there were many cases in which curve data could get added but the ctime would be incorrect until a frame change (i.e. on render) flushed this.
2010-10-21 10:28:06 +00:00
Campbell Barton
fde19bfe7e bugfix [#24347] Fly mode: Immediately after pressing Shift+F, keys W and S work, keys A, D, R and F do not 2010-10-21 09:02:21 +00:00
Nathan Letwory
c9d16d0ddb /WX enabled for MSVC in CMake too.
Warning fixes.
2010-10-21 08:32:53 +00:00
Nathan Letwory
107b274fb8 Enable /WX in blenkernel
Silence warnings
2010-10-21 07:39:18 +00:00
Campbell Barton
0ec320783e fix [#24339] Auto Depth, makes viewport lag.
The problem is the opensource nvidia nouveau drivers are slow running glReadPixels(), was hanging on memcpy().
However for autodepth its not needed to update the entire 3D view depths, so added view3d_update_depths_rect() to get the depths for a smaller area.
2010-10-21 07:38:09 +00:00
Nathan Letwory
ec6b9948ac Include BLI_math.h instead of math.h.
Silence a warning.
2010-10-21 07:29:15 +00:00
Nathan Letwory
6fc16a6e44 Silence warning about macro redefinition 2010-10-21 07:21:34 +00:00
Campbell Barton
9862157087 fix for fix [#24344] crash on adding new image when composite is open and there is no Nodetree
also use const prefix in solidify modifier where possible.
2010-10-21 04:21:09 +00:00
Campbell Barton
e2f1740761 use custom data mask defines, no functional changes. 2010-10-21 01:55:39 +00:00
Campbell Barton
fec8292df1 remove unused args for some modifiers, no functional change. 2010-10-21 01:10:22 +00:00
Campbell Barton
16b04834b3 improved fix for [#24267] Hook fails after Solidify
Rather then have the modifier calculate ORIGINDEX weather its needed or not (incorrect if it wasn't the first modifier on the stack),
create ORIGINDEX layer initially if any of the modifiers use it.
This way hook also works after Mirror and Screw modifiers which have the ORIGINDEX layer copied implicitly with DM_copy_vert_data().

This wasn't possible to check for before because this flag was always enabled so it would be passed to DM_set_only_copy().
Now just add the flag whenever calling DM_set_only_copy().
2010-10-21 01:08:12 +00:00
Nicholas Bishop
bfb8560a59 Partial fix for bug #24341, "Problems running blender headless"
* Fixed the random file popping up.
* Don't write to the history file in background mode, because ghost won't give us the right directory in that case
2010-10-20 23:13:12 +00:00
Campbell Barton
1998fa59ae fix for fix [#24336] evaluation time - curve has no effect
committed r32598 to fix [#24309] Reloading file with incorrect path location.

Setting the curves ctime when updating the object data overrode the animated value.
For now just set the ctime on newly added curves with will work as the user expects in most cases.
This is weak design IMHO because the ctime value can be set to anything but is reset on changing frames even if its not keyed.

With curves created via python or linked in this can still result in a bad ctime value.
2010-10-20 13:51:37 +00:00
Campbell Barton
a9f79ee536 Quiet compiler warnings. 2010-10-20 12:33:00 +00:00
Campbell Barton
394caf98e3 fix for -Wunused-value 2010-10-20 12:11:09 +00:00
Campbell Barton
a044486d7d [#24267] Hook fails after Solidify
Solidify modifier wasn't assigning origindex values.

- BLI_math.h array functions: range_vni(), mul_vn_fl(), mul_vn_vn_fl(), add_vn_vn(), fill_vni().
- define 'AT' as __FILE__ ":" STRINGIFY(__LINE__), useful for quick debug prints.
2010-10-20 09:18:55 +00:00
Campbell Barton
c2aa5d6dc0 bugfix [#24333] Horizon Color Picker Crashes Blender if Two 3D View Windows are Open
also added api function ED_area_tag_redraw_regiontype(), so an area can redraw all regions by type.
In this case there is a view3d area listener that needs to draw all WINDOW regions.
2010-10-20 04:12:01 +00:00
Mitchell Stokes
00b7422f9b stubs.c update for revision 32607, which introduced the BLC ED_space_image_paint_update(). 2010-10-20 02:47:53 +00:00
Nicholas Bishop
7110a4a288 == Sculpt ==
Fixed bug #22634, sculpting/multires and wireframe display mode glitches

* Changed ccgdm edge drawing to always use face griddata rather than edge data, since edge data is not updated during sculpting.
2010-10-20 01:17:18 +00:00
Nicholas Bishop
e12f950d25 == Paint ==
Fixed bug #24239, "Fkey doesn't work in image paint unless also in 3D texture paint"

* Fixed brush cursor not showing when painting in the image editor without 3d texture painting enabled
* Fixed fkey not working when not in 3d texture paint

Note:
This does not handle showing the brush cursor when reloading a file saved with image painting on but 3d texture painting off. The method used for object paint modes doesn't apply quite the same here, so I left that alone for now.
2010-10-20 00:42:19 +00:00
Nathan Letwory
b741740ffa Fix [#21294] Bad object drawing and crash when rendering
Reported and patched by Shane Ambler.

Took the opportunity to silence warnings in readfile.c. For Windows in SCons I enabled /WX
for blenloader. This means that all enabled warnings will throw errors from now on.
2010-10-19 22:17:34 +00:00
Andrea Weikert
56f89d2375 compile fixes on windows for quicktime.
* solved two "'blah' undefined, assuming extern returning int" 'warnings' that jesterKing now changed to be reported as errors (thanks! :))
2010-10-19 18:59:15 +00:00
Janne Karhu
fdfc09b49e Fix for [#24262] Segmentation attempting to render *NEED MOER INFO* 2010-10-19 17:45:19 +00:00
Janne Karhu
94aa87dd62 Fix for [#24293] Shadow pass is wrong
* The problem is that shadow pass is derived from the diffuse pass as
  shad = shad'/diff, where shad' = shad*diff. In cases where diff is
  0 and the division can't be done shad is left as shad' (=0).
* This all works just fine until the diffuse color is 0 on just one
  channel (no red in material color for example). In this case the shadow
  pass is left as 0 too regardless of the existence of an actual shadow,
  so the end result is a colored shadow!
* The only real solution is to use the original shadow intensity to
  determine if there actually is a shadow or not. This is now stored in
  shr->shad[3] from the lamp shadow calculation.

Note: The best solution would probably be to calculate the shadow pass on
it's own and not to derive it from the diffuse pass, but I didn't dare to
start messing up the shading code totally.
2010-10-19 16:10:30 +00:00
Campbell Barton
0a12a9bc7d [#24325] Texture painting using selected faces mask
draw a subtle grey over unselected faces rather then coloring selected faces which got in the way of seeing the colors while painting.
2010-10-19 15:35:46 +00:00
Campbell Barton
26249043e6 bugfix [#24324] Wrong center for scaling Bezier Curve's handles
slight change to how transform calculates the center of each bezier handle selection.
- selecting both handles but not the knot now uses the mid point between the 2, before it used the handle.
- selecting 1 handle of a curve was still setting td->center to be the knot, now use the handles location only if its selected.
2010-10-19 14:11:46 +00:00
Campbell Barton
dc7e1037d4 [#24307] 3d Viewport Mini 3D Axis changes color when alter 3d grid theme color
Drawing the view axis went to a lot of trouble to create a color which didnt look very good if the grid had a color other then grey set.
Simplify the function and just use the same colors as the manipulator, also use 2px fixed line width.
2010-10-19 13:04:40 +00:00
Campbell Barton
d1fe2dd967 bugfix [#24309] Reloading file with incorrect path location.
the cu->ctime was never set if the frame wasnt changed, so adding a curve and parenting could be done without a frame change leaving the cu->ctime value at zero.
changing the frame or rendering after this would make the parent relationship jump.

Set the curve->ctime in object_handle_update(), this way its set on file load and when linking in new curves.
Another option is to do this when parenting but probably this would miss other cases where its needed.
2010-10-19 12:21:57 +00:00
Janne Karhu
5f2764d849 Fix for [#24299] Changing Curves on rendered Pass scewes pass up seriously ;-)
* The number of pass channels wasn't taken properly into account when applying curves.
2010-10-19 11:51:31 +00:00
Campbell Barton
20c920e954 rename anim.c -> anim_movie.c since we have an anim.c in blenkernel too, it confused debuggers in some cases. 2010-10-19 11:39:37 +00:00
Campbell Barton
03d4121a55 Cancelling rotation on axis/angle object rotation didnt restore the original rotation.
also commented drotAxis/Angle since its not used yet.
2010-10-19 11:15:08 +00:00
Campbell Barton
5738f3b0b4 bugfix [#24322] Rotating objects with Axis+Angle mode fails. 2010-10-19 10:32:02 +00:00
Janne Karhu
ff5cbabffd Fix for [#24313] Displacement modifier is not respecting animated texture channels. 2010-10-19 10:26:53 +00:00
Janne Karhu
bb92265995 Fix for [#24319] Removing a cloth or softbody simulation in paticle mode problem 2010-10-19 10:17:19 +00:00
Campbell Barton
f979bca911 fix for exceptions in recent commit. 2010-10-19 09:50:43 +00:00
Janne Karhu
a781157047 Fix for bugs [#24316] Changing particles path step in particle mode makes lines invisible and [#24318] Particle lines disappear if view particles are enabled. 2010-10-19 09:28:38 +00:00
Campbell Barton
53c1d1a18a patch [#24320] Fix for [#24311] Copy and Paste
from Alexander Kuznetsov (alexk)

   This check was dubious to begin with, if it causes more problems it should be removed.
2010-10-19 08:35:30 +00:00
Campbell Barton
f3b031314d [#24270] RNA Properties with long Variable Names
disallow registering RNA with names longer then 31 chars.
2010-10-19 07:23:34 +00:00
Sergey Sharybin
6a842c19ae Fix #24321: duplicate of multiresolution modifier error 2010-10-19 07:10:12 +00:00
Nathan Letwory
f515b579e7 Remove BLI_bfile.c from build process. It is unused, and currently throws error C4013
(ie. previous commit works sweetly ;)
2010-10-19 05:47:22 +00:00
Campbell Barton
0aa2eee3ef bugfix with applying the object matrix with negative scales.
--- fixes report by ronan ducluzeau
Scale default cube on X axis to -1.
Rotate it on X axis to 33°.

Parent cube to lamp.
Clear parent and keep offset.

Cube's scaling value on X axis pass from -1 to 1
Cube's rotation value on Z axis pass from 0° to 180°
2010-10-19 05:36:16 +00:00
Nathan Letwory
2a89fb887e * Enable compile and link flags to build info also on Windows and in SCons.
* Added build_system SCons or CMake
* Write the new build info also to system-info.txt
2010-10-19 05:00:36 +00:00
Campbell Barton
42d4e93733 Using unsigned int from own commit r32425 broke tiling image textures in imagetexture.c.
Most formats use unsigned int, but practically its unlikely to be a problem to use int.
2010-10-19 04:29:05 +00:00
Campbell Barton
13d684f7bb fix for implicit declaration, not sure why this happens but OpenSuse 11.1 wouldn't build. 2010-10-19 04:25:16 +00:00
Campbell Barton
a7734cf3c0 bugfix [#24314] Motion path (ghosting/onioning) numbers are displayed with offset 2010-10-19 02:41:09 +00:00
Nicholas Bishop
8b0179a965 == Sculpt ==
Fixed bug #24111, "Mirror clipping not working while sculpting a mirrored mesh"

* Mirror modifiers can handle multiple-axis mirroring, updated sculpt to work with that
* Marked the "axis" field of MirrorModifierData deprecated, since it looks like bitflags are supposed to be used now
2010-10-19 01:57:15 +00:00
Campbell Barton
e01c00d194 bugfix [#24289] bpy.ops.object.select_name() is broken 2010-10-19 01:48:03 +00:00
Campbell Barton
de1f68a5e4 patch by Elia Sarti, adding selectable_objects and selectable_bases to the screen context, allowing some operators to run from the console which previously only worked in the 3D view. 2010-10-19 01:24:09 +00:00
Campbell Barton
106867910e use unsigned int for all layers. 2010-10-19 01:21:22 +00:00
Nathan Letwory
f08a9dfd8a Add operator for toggling cmd box on Windows.
Use through search menu (Toggle System Console) or
call bpy.ops.wm.toggle_console().

This is based on patch [#6927] Optional Console for Windows
by Fahrezal Effendi, submitted on July 10th, 2007 (!)

This paves the way for adding a command-line option to Blender to
toggle this cmd console, and for having a user preference option
for this. Command-line option I haven't added yet, as there seemed
to be problems with Python interpreter initialization (read: crashes).

This works by redirecting stdout and stderr to blenderlog.txt in user
temp directory (most likely %TEMP%\blenderlog.txt). When python problem
is fixed we can use this to always redirect stdout and stderr to this
logfile, making it also easier for us to ask users for this file in 
bugreports.
2010-10-18 20:41:52 +00:00
Nathan Letwory
6e77dc1942 whitespace commit, AKA commit count bump. 2010-10-18 20:33:04 +00:00
Nathan Letwory
d5f160d1e8 Mangle unused parameter names also on non-GCC platforms. This should help in situations where a coder starts using the previously
unused tagged parameter after all, reminding the coder to remove the tag and check further.
2010-10-18 20:32:11 +00:00
Andrea Weikert
bf09c851a9 quick commit for forgotten file in the G.sce -> G.main->name refactoring.
Patch by Jens Verwiebe, many thanks.
2010-10-18 17:55:11 +00:00
Campbell Barton
77867dfab1 remove annoying warnings for blenderplayers stub.c 2010-10-18 13:22:34 +00:00
Campbell Barton
799fc68234 cflags, cxxflags & linkflags in buildinfo. 2010-10-18 12:56:14 +00:00