Commit Graph

47594 Commits

Author SHA1 Message Date
Sergey Sharybin
d30cd92014 - Fixed dead-lock when subviding curve
- Hard-limit for cuts number is set to INT_MAX, soft limit to 10 (same as for meshes)
2010-12-05 07:08:14 +00:00
Campbell Barton
5f8eb5c069 use constant strings for outliner menus rather then sprint'ing them together. 2010-12-05 06:40:47 +00:00
Campbell Barton
8a65538fe0 fix for camera border going outside the clipping range while in camera view. 2010-12-05 02:16:01 +00:00
Janne Karhu
8c467a9c8a Fix for [#25036] boids particle from 2.49 opened in 2.5 is crash !?
* Old boids didn't have all of the necessary data for the new system.
* Changed the particles code so that a check for all necessary data is always done before starting actual dynamics calculations.
2010-12-05 01:48:49 +00:00
Sergey Sharybin
a3bac149a1 Fixed memory leak in thumbnail_joblist_free: last image in loadimages weren't
freed even if it's not copied to the filelist
2010-12-04 18:34:31 +00:00
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
Tamito Kajiyama
a9e50bde82 A few attempts to reduce the amount of memory consumption in Freestyle.
* Made changes to the Controller so that dynamically allocated
memory areas (e.g. imported mesh data, winged edges, and a view map)
are released soon after they become unnecessary.

* Added a new feature edge selection criterion based on image border.

When the "Selection by Image Border" option is enabled, feature edges
are selected only if they are within the border of the image being
rendered.  The border is defined either by the frame size or a border
region (specified by the Shift-B key in a 3D View window).  When large
scenes are rendered, this clipping by the image border leads to less
memory consumption.

* Enabled the "Silhouette", "Border", and "Crease" edge types of
the Selection by Edge Types option by default.

When no edge types are specified, all feature edges including "Ridge",
"Valley" and "Suggestive Contour" are detected at the cost of extra
memory consumption.  Disabling these three edge types and enabling
some other edge type leads to less memory consumption.  This change
is intended to help new Freestyle users by providing a typical, low
memory consumption default setting.

* Slightly rearranged the UI controls for feature edge selection.
2010-12-03 23:17:49 +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
Tamito Kajiyama
1bfcba31d2 New feature edge selection criterion based on object groups.
The Freestyle tab in the Render buttons has a couple of new
options "Group" and "Group Negation".  The Group option specifies
a group of objects (defined through the Groups tab in the Object
buttons), while the Group Negation value is either INCLUSIVE or
EXCLUSIVE.  If INCLUSIVE, feature edges belonging to some object
in the group are selected.  Otherwise, those feature edges not
belonging to any object in the group are selected.
2010-12-02 23:50:10 +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