Commit Graph

22966 Commits

Author SHA1 Message Date
Ton Roosendaal
b3eea07e84 IRC report:
Adding mesh primitive circle/cone/tube now has first vertex
on top. Looks much nicer on low vertex totals.
Fix provided by Mario G Kishalmi, thanks!
2010-12-04 16:02:04 +00:00
Ton Roosendaal
cadd08b16f Bug fix #21900
Issue with Library linking: if you already have libraries linked in,
and you attempt to link more data, using internally already linked
stuff (like a group with group links) the linkage would fail. It did
resolve on save-load though.

There's a long commented history in this code explaining it. I found
out it was because of manual step-by-step linking versus normal file
reads. In the first case, the "lib pointer map" was missing references.
2010-12-04 15:45:16 +00:00
Campbell Barton
fa4bbbb249 Maintenance,
- remove some redundant declarations
- changed VertexTangent and Path structs to avoid compiler alignment padding.
2010-12-04 13:00:28 +00:00
Ton Roosendaal
4dc59fff28 Bugfix #24699
Crash when deleting Shapekeys, while Graph or Dopesheet was visible.
Caused by RNA collection lookup, which is not checking against index 
out of range errors.

Brecht might have to give blessings for this though :)
2010-12-04 12:33:45 +00:00
Campbell Barton
0271ad6322 Give functions that use printf style formatting GCC format attributes so if incorrect formatting is used the compiler will warn of this.
found & fixed 2x incorrect formatting args.
2010-12-04 11:44:56 +00:00
Campbell Barton
47ca7a5f39 disallow setting RNA attributes while drawing, this is bad practice so enforcing here has the benifit of making sure people are not manipulating blender scene data in a drawing panel for eg.
This is ifdef'd and may be disabled later on, or only enabled in debug mode.

This applies to setting any RNA value that has an ID and is not a screen or window-manager datablock.

Some addons break this rule and need fixing but from my tests blender UI scripts are ok.
2010-12-04 06:25:36 +00:00
Campbell Barton
fe67fc6459 fix for strict prototype error. 2010-12-04 05:34:16 +00:00
Campbell Barton
60fad4c955 own mistake made r33442, was returning the pose channel, rather then its bone. 2010-12-04 01:11:50 +00:00
Campbell Barton
9dbb31383f remove shadowed definitions but keep them as zero this time. 2010-12-03 23:55:10 +00:00
Ton Roosendaal
0559f4f3e7 Const conflict in PIL_dynlib_find_symbol
Thanks wiseman!
2010-12-03 19:42:40 +00:00
Ton Roosendaal
1ebfb545ee Bugfix #2508
Campbell's cleanup commit  33442 today broke axes drawing.
Restored code.
2010-12-03 19:29:05 +00:00
Ton Roosendaal
c8f80fffba IRC fix:
Curve editmode was missing hotkey for operator "Select Inverse"
Is now added like Mesh, CTRL+I
Thanks lmg!
2010-12-03 18:49:38 +00:00
Ton Roosendaal
b036437a5b IRC bug report
Text editor, "Add new" caused zero-user block.
The claim in the code why it should be decreased is dubious.
Thanks wiseman!
2010-12-03 18:39:40 +00:00
Ton Roosendaal
5ae3c5d321 Irx report:
Missing void declarator in init ffmpg (appears to be error now).
Thanks lmg!
2010-12-03 18:35:10 +00:00
Ton Roosendaal
45922c9150 Bugfix #24568
The old blocking "time cursor" wasn't working anymore.
Commit 32798 overlooked that the initialization was
needed.

Now bakes show it again. Note to self: it seems to flash
slightly (like 2.49), need to check on it one day.
2010-12-03 18:26:42 +00:00
Ton Roosendaal
990b487c73 Bugfix #25026
Nurbs edit: 'switch order' crashed when order was higher than amount of 
points.
2010-12-03 17:31:34 +00:00
Campbell Barton
263830f000 Enabled GCC -Wwrite-strings warning for CMake and replaced many 'char's for 'const char's,.
Only one functional change where Transform orientations passed "" to BIF_createTransformOrientation() which could then have the value written into.
2010-12-03 17:05:21 +00:00
Campbell Barton
7c86a1a95c compile fixes for mingw32. 2010-12-03 16:45:04 +00:00
Sergey Sharybin
a21c639529 Fix for compilation error caused by strict prototype checking 2010-12-03 14:35:10 +00:00
Sergey Sharybin
8934b61739 Fix #25017: Bezier Curve Deform Twisting after adding Shape Keys
- Invalid step was used in curve_applyKeyVertexTilts
- Minor cleanup in editcurve stuff
2010-12-03 14:35:03 +00:00
Ton Roosendaal
52edaae9c5 Bugfix #20565
Material Node shaders: displaying GLSL + rendering previews crashed.
Reason was non-safe threaded access to material nodes. Now, on a preview
render, a full copy of Material is being made.
2010-12-03 14:26:03 +00:00
Campbell Barton
cd97253502 - added GCC warning -Wstrict-prototypes
- fixed bug in paste material, exposed by stricter warnings.
- removed/renamed various shadowed vars.
- removed BGE lamp.colour, only allow lamp.color attribute.
2010-12-03 12:30:59 +00:00
Janne Karhu
aca76ddb50 Fix for [#24899] Sequence Transform strips don't apply animation properly to scale.
* Rendering a scene strip updated all animation data to it's frame, so fcurves were left with the wrong value.
* Now the animation data is recalculated to original frame after rendering each scene strip.
2010-12-03 12:08:59 +00:00
Campbell Barton
cfc1b133f6 updates to patch from Dan Eicher, allow adding a NodeGroup through bpy.data.node_groups.new(name, type)
made some minor changes.
2010-12-03 03:44:39 +00:00
Campbell Barton
892b3fbe17 fix [#24938] Seed value on Particle settings gives Error when trying to insert key. 2010-12-03 02:24:21 +00:00
Campbell Barton
b45c3363fd fix for some pedantic warnings. 2010-12-03 01:52:28 +00:00
Campbell Barton
9e5577db47 fix [#25015] Ctrl+L linking to scene list does not scroll when the list is larger than screen resolution 2010-12-02 22:58:23 +00:00
Campbell Barton
cbab6a742f correction to error message from Dan Eicher 2010-12-02 21:55:55 +00:00
Campbell Barton
287325af35 fix [#24586] Report mode of console does not show proper cariage returns.
use the line iterator to split up newlines.
2010-12-02 21:48:46 +00:00
Campbell Barton
de0b41588a fix crash when report timer was set but no usable error reports were found. 2010-12-02 21:40:39 +00:00
Ton Roosendaal
f94dd65999 Bugfix #25010
When loading files without UI (quit.blend) you got memory-free errors
for fileselect. Pointers were NULLed where not needed.
2010-12-02 18:27:04 +00:00
Guillermo S. Romero
1656366903 Update include paths for fonts in image stat display (rev33422). 2010-12-02 17:30:28 +00:00
Ton Roosendaal
30179f4dc6 IRC comment fix:
Option "free all texture-images" after render, was also
freeing unsaved painted images. Now it skips them.
2010-12-02 16:12:55 +00:00
Janne Karhu
5ca7c1b0f8 Fix for [#25006] Particle system crash (missing check for negative index) 2010-12-02 14:52:07 +00:00
Campbell Barton
38eb5fe75c bugfix [#24913] Text bevel normals wrong
error was introduced 33269, to fix [#24834].

this only reverts a small part of that commit, added note not to change this.
2010-12-02 05:39:43 +00:00
Campbell Barton
f305ed0c50 use fixed width fonts for image stat display. 2010-12-02 04:23:56 +00:00
Janne Karhu
1dbc93b540 Additional fix for #24958 Cloth pinning not working
* Don't assume that the original dm given to cloth modifier is a cddm
2010-12-02 04:06:02 +00:00
Joshua Leung
e75ef3551e Adding some descriptions for animation-related operators that were missing them. 2010-12-02 02:03:30 +00:00
Campbell Barton
b31594c4ab patch [#23212] Python api for Nodes
from Dan Eicher (dna)

This allows automated node tree creation and editing.

developer note, made some changes to the patch.
- removed incorrect use of container_of(), GCC only also, search for the scene instead.
- commented socket min/max access, these are internal use only as far as I can tell.
- commented group/ungroup functions, these use the selection context and are not really data level functions.
- use remove() rather then delete()
2010-12-02 01:18:59 +00:00
Campbell Barton
024b0f92d5 fixed crash with rigid body constraints not having their child pointer read correctly. 2010-12-01 23:40:21 +00:00
Ton Roosendaal
3e214bd72c Bugfix #24999
Array Modifier: edge indices could be equal to numVerts, causing 
bad crashes in derivedmesh. Similar fix to previous here with
face indices. Should poke the coder of this... for now it survives OK.
2010-12-01 17:47:38 +00:00
Ton Roosendaal
f4205498a9 Bugfix #24890
Particle cache reading: crash when loading .blend on a different
endian system, code was dumping arrays in .blend without DNA.

General warning for devs: avoid generic write_data and dynamic
arrays in DNA.
2010-12-01 15:58:45 +00:00
Ton Roosendaal
6090b1c5a7 Bugfix #24903
GRLESS key was missing in RNA key list, so it didn't show up in
keymap editor. Internally support for it worked already.

Thanks to Milos Zajic for showing the fix.
2010-12-01 13:18:24 +00:00
Janne Karhu
b36ab83778 Fix for [#24958] Cloth pinning not working
* Cloth now uses the original derived mesh for simulation and a new dm only for applying the simulation result.
* Reverted Campbell's temporary workaround r33406.
2010-12-01 12:23:10 +00:00
Campbell Barton
bfe2447f57 partial fix [#23265] matrix_world rna path is visible but returns 0 to drivers without error however accessed
this report raised a number of problems with rna paths, while we still dont have multi-dimensional array access, invalid paths were being accepted which confused things.

rna path resolving code was accepting all sorts of invalid input because atoi() just returns 0 for non numeric input.
now check if 0 number == '0' character.
2010-12-01 10:17:31 +00:00
Campbell Barton
2ada145fa4 fix for crashes trying to resolve paths "location[]" or "location.." 2010-12-01 09:12:54 +00:00
Campbell Barton
fd7728883a increase the reference counts when setting default scene compo nodes else removing them can set the user count < 0. 2010-12-01 08:49:08 +00:00
Campbell Barton
f5f332892c workaround [#24958] Cloth pinning not working
detailed explanation as to why this is needed in report.
2010-12-01 05:59:11 +00:00
Campbell Barton
f801b2bcba bugfix [#23406] DPX Images load darker then saved, UI broken.
- a linear float buffer was being created and saved into a non-linear DPX/Cineon file.
- removed the UI since the settings are not used at the moment.

added a utility function IMB_float_profile_ensure(), which returns a float buffer in the requested profile, using the existing if needed or returning an allocated buffer if the profile is different to that of the ImBuf. - Useful this case where the save function has its own linear setting.
2010-12-01 02:54:10 +00:00
Campbell Barton
ad0dd98f26 fix for some mistakes in recent commit. 2010-12-01 02:40:13 +00:00