Commit Graph

22148 Commits

Author SHA1 Message Date
Brecht Van Lommel
38df1439c8 Fix #23708: F-key make links between nodes didn't add links when a node output
already had a link, not sure why this wasn't done, because the option to do it
was in the code.
2010-09-25 19:35:59 +00:00
Brecht Van Lommel
9da82e2d68 Fix #23690: threading crash with compositing nodes and scopes view. 2010-09-25 16:35:02 +00:00
Brecht Van Lommel
58082beda9 Fix #23847: keyframe insert on button not working in popup menus, e.g.
the vector popup for node inputs.
2010-09-25 14:32:26 +00:00
Brecht Van Lommel
cd429bdb50 Fix #23985: crash in graph editor with objects without material. 2010-09-25 14:14:04 +00:00
Sergey Sharybin
9f6544b426 Fix #23983: Text editor does not update immediately when unlinking a text
- Unlinked text block was sending as reference to note which isn't safe at all
- Minor reorgonize of text space listener to use switches instead of big condition
2010-09-25 13:27:42 +00:00
Brecht Van Lommel
0d3f0ff08e Fix #23901: displace node not working with negative values. 2010-09-25 11:30:46 +00:00
Campbell Barton
d305a64b69 py/rna keyframe functions can now key longer paths if called from an ID block.
eg, bpy.context.object.keyframe_insert("soft_body.plastic")
2010-09-25 10:11:36 +00:00
Brecht Van Lommel
a3b0bda708 Fix related to #23606, tweak baking error message a bit so it also covers
the case where the image can't be loaded.
2010-09-25 08:31:58 +00:00
Campbell Barton
80f6ca9850 fix for own error with recent patch edits, globbing wasnt being cleared so importing an OBJ would keep *.obj when opening a blend. 2010-09-25 08:29:25 +00:00
Sergey Sharybin
468e48982b - Ignore selected handles if control point is selected when
snapping cursor to selection (fixes #23966: Cursor to selected: incorrect behaviour in curves)
- Keep handles' of selected vectors if control point is selected when
  snapping selection to grid/cursor
- Added definitions to hard-coded numeric flags for make_trans_verts
  and removed unused proportional flag
2010-09-25 06:45:28 +00:00
Janne Karhu
b57e09544a Fix for [#21875] Copy rotation only on y axies 2010-09-24 17:49:33 +00:00
Janne Karhu
3567eebcc2 Fix for [#23549] Copy rotation don't work if influence is another than 0 or 1
* Replaced constraint result interpolation with much simpler logic, hopefully this doesn't create any unseen complications :)
2010-09-24 17:47:28 +00:00
Campbell Barton
b0f4c3c883 bugfix [#23973] Make Single User -> Object & Data dont work as expected 2010-09-24 11:28:56 +00:00
Janne Karhu
46bcd48abf Changing loopcut count caused memory errors in some cases due to missing null check. 2010-09-24 10:49:29 +00:00
Campbell Barton
0ed109c550 missing check in recent commit 2010-09-24 10:39:26 +00:00
Janne Karhu
4a8c1e3a22 Fix for [#22289] Cancelling transform fails to revert change in f-curve handle type 2010-09-24 09:54:28 +00:00
Janne Karhu
df71f8828c Fix for [#22323] Graph Editor: crashe when transforming keys after pivot is set to "Individual Centers" 2010-09-24 09:18:28 +00:00
Janne Karhu
361bd506dc Fix for [#23970] Memory problem when setting hair amount to zero 2010-09-24 07:39:52 +00:00
Campbell Barton
6a4b9298c8 patch [#23968] filter_filetypes property to allow operators to filter by file extensions in the file selector
modified the patch to store the string internally rather then an array of allocated string pointers, less hassle with memory allocation.
changed to use fnmatch, so *.foo is needed (not .foo as with the patch)
2010-09-24 07:05:43 +00:00
Campbell Barton
99643037ca new utility function BLI_testextensie_glob
uses fnmatch to match strings like "*.foo;*.bar;*.blend?"
2010-09-24 06:20:43 +00:00
Campbell Barton
e90ad1d9ba Annoying hack to pretend that an operator and its properties are the same, when passing an operator to an rna function argument which accepts 'AnyType', then pass the properties instead.
This means we can do operator drawing without passing self.properties as an argument.

while this check if quite specific, if this gives problems later on we should probably change operators not to try to mix an operator and its properties, it looks nice to a scripter but internally is not easy to manage.
2010-09-24 03:48:26 +00:00
Campbell Barton
5c99f3886e fix for python refcounting leak, RNA_path_resolve_full now unsets the index if its not last. 2010-09-24 03:24:15 +00:00
Campbell Barton
05f8e53d33 bugfix [#23965] Segmentation fault when using bpy_struct.keyframe_insert() with nested custom property 2010-09-24 00:39:01 +00:00
Janne Karhu
3921f0528c Fix for [#22662] Transforming handles in the graph editor is broken. 2010-09-23 23:45:14 +00:00
Nathan Letwory
af27774158 Fix [#23539] Blender Generated Static Environments Fail To Save
reported by bowels

Saving environment map didn't look at relative_path setting, made it do so.
2010-09-23 22:44:03 +00:00
Brecht Van Lommel
02fd98e1cf Fix #23170: multithreaded texture baking could give wrong results with margin,
with some threads not writing the margin mask.
2010-09-23 21:38:01 +00:00
Brecht Van Lommel
3b17b75451 Fix #23005: circle select not working paint modes with face select. 2010-09-23 21:01:12 +00:00
Brecht Van Lommel
63746ac4f7 Fix #22947: sample color tool not working in user preferences, was assuming the
color to be a property on an ID block. Note that sampling from another window
still does not work, only within the same window.
2010-09-23 20:26:03 +00:00
Brecht Van Lommel
1199551239 Fix #22922: adding new nodes didn't add them at the mouse location. This also
caused auto connect to not work in some cases, because that now orders nodes
and only connects if the new node is to the right of the old node.

I doubted between always connecting to the new node as output or keeping this
ordering trick also when adding nodes. Decided on the latter because then you
can also add a node between two others and have it auto connect to both.
2010-09-23 20:16:45 +00:00
Brecht Van Lommel
960cdb8f5d Fix other part of #22853: mirrored transform on armature tail/head only did not
mirror roll.
2010-09-23 19:31:01 +00:00
Brecht Van Lommel
cc4e2dfa59 UI: for operator macro's, don't show internal ID name but UI name in redo panel. 2010-09-23 18:58:26 +00:00
Brecht Van Lommel
d8ebb7beff Fix part of #22853: armature editmode crash with undo. 2010-09-23 18:54:06 +00:00
Brecht Van Lommel
6ae2003250 Small code cleanup to remove old undo calls that do nothing. 2010-09-23 18:45:56 +00:00
Brecht Van Lommel
c8343f59d8 Possible fix for #23947: baking while in editmode did not take into account
changes made to the mesh since entering editmode.
2010-09-23 18:26:33 +00:00
Campbell Barton
9b7cc91134 bugfix [#22169] LoopCut and Slide plus ArrayModifier Object offset FirstLast gives crash 2010-09-23 14:29:51 +00:00
Campbell Barton
f88ad3f048 bugfix [#23595] Texture paint with a node based brush produces artifacts
also changed displace modifier not to link object depgraph when not using object texturespace.
2010-09-23 12:03:34 +00:00
Janne Karhu
6fdd00f709 Fix for [#22598] Animated texture properties do not appear in IPO if no material properties are also animated 2010-09-23 11:29:58 +00:00
Janne Karhu
7cbed194f4 Fix for [#23872] particle deflection in conjunction with SPH particles is apparently buggy
* Fix turned into a thorough cleanup and reorganization of particle collision response code.
* Collisions are now much more accurate, stable and even a bit more in agreement with real world physics.
* Only still remaining problem is rotating/deforming deflector objects, but that's something for the future.
* Visible changes should only be positive, i.e. no leaking particles, no strange instabilities etc.
2010-09-23 09:31:13 +00:00
Campbell Barton
1c3f2354f8 bugfix [#23795] Insert Visual Loc/Rot Keyframe of Armature Bones Broken
- converted 3 options in keying sets to use bl_options like panels & operators
- removed function arguments for new keying sets, better adjust these after to avoid duplicating properties in function arguments (they were not used).
2010-09-23 08:15:53 +00:00
Campbell Barton
e0289ff6fc support for PROP_ENUM_FLAG buttons, these were only supported by python. 2010-09-23 07:31:44 +00:00
Campbell Barton
25e3f68c7f fix for mistake in rna naming. 2010-09-23 04:49:01 +00:00
Campbell Barton
2b9a73ff98 - py/rna's path_resolve function was ignoring the index eg: obj.path_resolve("location[1]")
- corrected comment from previous commit
2010-09-23 02:12:33 +00:00
Campbell Barton
db47803de4 bugfix [#23954] Bone roll keeps changing when switching between EDIT <-> OBJECT mode
use lower epsilon value.
2010-09-23 01:48:31 +00:00
Campbell Barton
725c8dde92 patch [#23675] fix #22787 with workaround
from Shane Ambler (sambler)
2010-09-22 17:13:23 +00:00
Campbell Barton
e2c0777828 bugfix [#23577] Parenting scaled objects transforms them
commented so this line isn't added back.
2010-09-22 16:47:46 +00:00
Campbell Barton
7e121cb9a5 clear parent on objects with no parent would still transform them. 2010-09-22 16:30:57 +00:00
Campbell Barton
6bb0fc3e4f minor changes to text3d editing, skip wchar --> utf-8 conversion on cursor movement. 2010-09-22 15:39:43 +00:00
Campbell Barton
aa7db99a38 bugfix [#23832] Moving a pose bone doesnt update the transform button props realtime. 2010-09-22 14:34:02 +00:00
Campbell Barton
9387d46772 bugfix [#23948] Alpha from images inside compositor is gone
also fix memory leak.
2010-09-22 14:13:34 +00:00
Campbell Barton
9f901f6422 bugfix [#23950] Crash with bake 2010-09-22 13:43:31 +00:00
Nathan Letwory
0bbc2cf882 After discussion with Campbell (ideasman) on IRC I reorganized notifiers and created new one for visibility toggling (epilogue to r32052, fixing [#23944]). 2010-09-22 13:42:20 +00:00
Campbell Barton
b27d924aac bugfix [#23514] Modifier names containing ']' character cant be animated. 2010-09-22 09:49:35 +00:00
Janne Karhu
b6d28b5850 Fix for [#21718] Shrinkwrap's "Project" mode with offset gives wrong results.
* normal offset not taken properly into account
* wrong usage of BVHTree (epsilon != radius) caused massive slowdowns in calculations, for example just opening test file took about 30 s on my machine, after fix about 0.5 s :)
2010-09-22 09:38:11 +00:00
Daniel Salazar
764a760c66 Increasing compositor blur max size 2010-09-22 08:51:18 +00:00
Dalai Felinto
ef8a6e5c84 RNA renaming nodetree to node_tree
* previously some were left as nodetree, that is not only inconsistent, but it was also raising one of those RNA property not found errors)
2010-09-22 08:10:46 +00:00
Nathan Letwory
f82f3f235e Fix [#23944] Missing update of 3D view when toggling visibility of object in outliner with keyboard
Reported and patched by Torsten Rupp (patch [#23895])

Also fixed typo in toggle visibility operator name
2010-09-22 06:58:51 +00:00
Campbell Barton
1632db7b71 bugfix [#23784] Renaming files broken in the file selector 2010-09-22 05:32:39 +00:00
Sergey Sharybin
916085247a Fix #23925: converting text into a curve looses materials
filldisplist worked incorrect with polys when charidx matched but col doesn't
Also fixed material loose when converting text/curve to mesh
2010-09-22 05:08:52 +00:00
Campbell Barton
d2bc4a31a0 patch [#23796] Full support for unit buttons: area, volume, mass, velocity and acceleration
from Lorenzo Tozzi (oni_niubbo), suppress_only_shown.diff
2010-09-22 02:47:08 +00:00
Campbell Barton
e4f3a0efa6 patch [#23796] Full support for unit buttons: area, volume, mass, velocity and acceleration
from Lorenzo Tozzi (oni_niubbo), multiple patches: better_split.diff
2010-09-22 02:44:03 +00:00
Campbell Barton
b0f36f0317 patch [#23796] Full support for unit buttons: area, volume, mass, velocity and acceleration
by Lorenzo Tozzi (oni_niubbo)
2010-09-22 02:36:14 +00:00
Campbell Barton
109edc544c bug report [#23933] "Select Linked" with "Limit by Seams" only working for Face Mode selection
This is intentional so include in tooltip
2010-09-21 16:21:01 +00:00
Janne Karhu
22317d7a29 Fix for [#23818] Edge slide not resetting properly when displaying edge lengths
* Temp selections weren't cleared on ending edge slide.
2010-09-21 15:16:58 +00:00
Janne Karhu
42872eb036 Temporary fix for [#23848] Image too small Error
* This should be fixed properly later when general window close/resize problems in the todo list are tackled.
2010-09-21 14:39:18 +00:00
Campbell Barton
3f18d7bb9b bugfix [#23927] Crash proportional editing: connected
crash when using too much stack memory, each recursive call for the sorting function would allocate 200 bytes in TransData per call (64bit os), now pass this as an argument.
2010-09-21 12:27:09 +00:00
Campbell Barton
8b72529942 fixed filename overwrite red highlight not updating when +/- pressed.
also made some vars not animateable.
2010-09-21 10:59:53 +00:00
Campbell Barton
cf4f9d2c19 bugfix [#23923] extra material slots created 2010-09-21 06:09:14 +00:00
Nathan Letwory
e2adc92341 nerr declaration was in wrong place, causing compile error on OSX 2010-09-21 02:45:00 +00:00
Campbell Barton
d0e13b331f Error reported by Daniel Salazar, Compositor color is wrong since my fix.
this is because of fairly confusing logic, when an SRGB image has a float buffer added its always LINEAR, so we have to account for this elsewhere.
So the conversion from byte to float works like this:
* NONE -> NON-LINEAR
* SRGB/LINEAR -> LINEAR
...but none change the profile variable.
2010-09-21 01:40:20 +00:00
Brecht Van Lommel
efbda5c53e Fix #23754: glsl + constructive curve modifier not drawing correct. 2010-09-20 21:57:29 +00:00
Brecht Van Lommel
2ac17c4c23 Fix #23917: selecting a directory with the file browser didn't append
a slash, which is necessary for e.g. render file ouput.
2010-09-20 21:11:38 +00:00
Brecht Van Lommel
aff24bdc07 Fix error in normal flipping commit, that showed wrong result especially
with ray transparency + normals pointing away from the camera.
2010-09-20 19:57:14 +00:00
Nathan Letwory
67367a22cf Some fixes for warnings found while investigating quicktime-related bug reports. 2010-09-20 15:12:53 +00:00
Campbell Barton
b859d355c8 bugfix [#23739] # (hash) character can't be used in image filenames
images would convert hashes to numbers on load but it didnt update properly and this is what image sequences is for.
2010-09-20 13:35:55 +00:00
Nathan Letwory
f61f7dbb55 Silence a compiler warning. 2010-09-20 13:19:37 +00:00
Nathan Letwory
05296e3065 Partly apply patch [#23746] Clarify azone->edge values.
Submitted by Shane Ambler.

The original patches made an enum for action zone edges, changed positioning for minimised icons and repositioned minimised icon for operator properties panel.

I kept the enum idea, but further improved on the naming. Some switches used in place of if/else blocks and added some comments. See patch tracker for more comments.
2010-09-20 13:13:40 +00:00
Campbell Barton
5115a7068c missing free in vertex group sorting. 2010-09-20 13:10:53 +00:00
Campbell Barton
a523ec4b8b fix for own recent commit, pixel size for lamp/object center needs to use the view matrix for perspective and ortho. 2010-09-20 11:54:54 +00:00
Campbell Barton
e7edc4563a bugfix [#23326] Enable to add keframes on Image values (texture context) 2010-09-20 09:52:29 +00:00
Janne Karhu
d24e5c05e0 Fix for [#21976] edges disappear when using loop cut on geometry with hidden parts 2010-09-20 09:40:58 +00:00
Campbell Barton
7f76c2eab1 bugfix [#20576] Curve modifier and loop cut
Quaternion interpolation was skipped which gave ugly stepping with the curve modifier (broke with my curve twist fix)
2010-09-20 09:09:00 +00:00
Campbell Barton
2c5aba0c9f bugfix [#22263] Child of constraint - only rotation 2010-09-20 06:47:34 +00:00
Campbell Barton
a036626604 bugfix [#23849] When the file is opened, Blender 2.5x crushes.
id-property arrays saved in 2.4x would crash on reloading.
2010-09-20 05:46:07 +00:00
Campbell Barton
ffd366e862 bugfix [#23813] Memory leak when importing bvh
This is not specific to BVH Importer, any operator called from python which returned cancelled would have wouldn't free its report list.
2010-09-20 04:59:20 +00:00
Campbell Barton
d88ba47eb9 bugfix [#23909] Calculating Depth
- depth was incorrect, changes since 2.4x.
- minor edit to transform manipulator, no functional change.
2010-09-20 03:28:02 +00:00
Campbell Barton
c64a9d8d41 bugfix [#23910] Removing an object in Py crashes blender 2010-09-20 03:09:24 +00:00
Campbell Barton
2ae4b2b687 bugfix [#23906] Cloud generate/degenerate crashes renderer 2010-09-20 02:53:39 +00:00
Campbell Barton
1615c9e435 python/c utility function for debugging, see http://wiki.blender.org/index.php/Dev:Doc/Debugging/PyFromC 2010-09-19 14:02:45 +00:00
Campbell Barton
6ed4656604 map old/new rna & ui back 2010-09-19 13:38:45 +00:00
Campbell Barton
db354073ba patch [#23897] ARMATURE_OT_{hide,reveal}
from Dan Eicher (dna)
2010-09-19 13:18:05 +00:00
Campbell Barton
5b92c5bc54 fix for fix, corrention by MiikaH since I cant test. 2010-09-19 12:19:58 +00:00
Campbell Barton
b26de72970 fix for some win32 setups not having size_t defined.
Reported by MiikaH on IRC.
2010-09-19 10:43:42 +00:00
Campbell Barton
aaf328dc78 remove redundant []'s for list comprehension's, py2.4+ supports this. 2010-09-19 07:07:14 +00:00
Campbell Barton
ce639f18d6 fix for object centers size flickering when the view is far from the center (1000 or more units). 2010-09-19 06:41:44 +00:00
Dalai Felinto
f4198dce70 nodetree -> node_tree (rna pointer not found) 2010-09-18 21:04:33 +00:00
Nathan Letwory
ab5b95d148 * Update BGE for change in r32001
* Fix var declaration in bpy_interface.c
* Remove forward declarations from py_capi_utils.h: they are unnecessary and break compiles (there were probably many warnings about this during compile with GCC).
2010-09-18 19:38:27 +00:00
Campbell Barton
db7a4e530e move namespace creation function into py_capi_utils.c, to be used in more general cases, not just the blender/rna api. 2010-09-18 15:30:03 +00:00
Campbell Barton
a45797fe55 bugfix [#22767] parenting object causes rotation/scale/location information to be corrupted 2010-09-18 14:47:59 +00:00
Damien Plisson
9fae26efe9 Fix for [#23753]: Enable QTKit import to run in background thread
Was crashing file browser when there was some quicktime movies in the folder
2010-09-18 12:50:45 +00:00
Nathan Letwory
90b57077cc Apply patch [#23887] Fix for [#23886] Timeline region update missing when adding/select/moving markers
Reported and patched by Torsten Rupp

When a time marker is added in the timeline window via keyboard (keycode M) or existing markers are selected/moved via
the mouse the marker resp. the selection state is not draw immediately in the timeline window region.

The patch adds notifiers where necessary to ensure updates.
2010-09-18 08:49:03 +00:00
Sergey Sharybin
e2f4395864 Fixed problems with outliner update in same cases caused by my previous commit.
This troubles were caused by "break" of ND_OBJECT case in outliner area listener,
so not all cases were handled.

Handle more data and actions in outline listener, but not refresh when it's
actually unneeded (there where problems with it without that "break" -- extra
refreshing could be made).
2010-09-18 08:37:47 +00:00
Campbell Barton
d81315e9d2 bugfix [#23706] SEGFAULT: File Load of EXR
image node was modifying the original buffer color management, now only modify a copy.
2010-09-18 07:19:32 +00:00
Campbell Barton
c853c23267 missed renaming this function call. 2010-09-18 04:24:04 +00:00
Campbell Barton
b655413689 bugfix [#23884] Crash On Delete of a Duplicated Object 2010-09-18 04:08:40 +00:00
Campbell Barton
dea59cc5eb warning fixes and minor cmake changes. 2010-09-18 03:55:56 +00:00
Campbell Barton
d5e11d409f fix for a (probably harmless) bug in makesdna where 1 byte off the end of the buffer was used in a comparison.
also fixed a memory leak.
2010-09-18 03:46:13 +00:00
Nathan Letwory
6d9e4c719a Apply patch [#23745] fix #23078 operator panel disappears.
Patch by Shane Ambler
Reported by Anthony Edlin

From the patch details:
"
In response to bug #23078 the operator panel disappears when dragged above the top of the 3dview without showing the
azone icon to restore it.

This patch properly hides the operator panel if dragged near the top of the 3dview so that the azone icon is in place
"

Thanks!
2010-09-17 23:50:10 +00:00
Nathan Letwory
a06c46d8dd Apply patch [#23846] Fix for [#23698] in File Browser system. Properly removes handler and sfile when File selector disapears.
Patch by Alexander Kuznetsov
Reported by Chidozie Oku

From patch description:
"
Handler is now released on every exit from File Selector. For example pressing ctrl-up and then changing editor type
to another also releases the handler.

When an area is changed from SPACE_FILE, ED_fileselect_exit is called for clean up. It takes function of freeing folder
list and files (before it was done in cancel or exec functions) because they must be released on every exit anyway.
op!=null means cancel or exec was not executed so a handler was not released. ED_fileselect_exit then releases the handler
without changing screens.
"

Thanks!
2010-09-17 22:12:23 +00:00
Janne Karhu
b4a4c33054 Possible fix for all the particles related SIMD SVBVH bugs.
* Velocity for particles that were born at exactly integer frames was calculated wrong when they were born.
Note: If you had a raytrace acceleration related bug, please clear the pointcache for all particles, toggle a particle setting to reset pointcache and rebake to create a valid simulation.
2010-09-17 19:02:19 +00:00
Campbell Barton
4e9c329faf patch [#23855] fix CMakeList.txt for WITH_QUICKTIME
from Filiciss Muhgue (filiciss)
2010-09-17 16:54:59 +00:00
Campbell Barton
62a8be4817 patch [#23840] [Pose]Bone.envelope(point=(0,0,0))
from Dan Eicher (dna) 

Basically just wraps distfactor_to_bone() and passes the correct head/tail depending on which bone type it's called
from.

note:
 renamed envelope() --> evaluate_envelope()
2010-09-17 16:45:42 +00:00
Campbell Barton
6717b75ecd bugfix [#23783] /../ prefix stops going up a dir
also fix for recent addition to operator check(), when the file selector is loaded with no operator.
2010-09-17 15:11:12 +00:00
Campbell Barton
84dc5a3b94 bugfix [#23864] Bevel Modifier + UV crashes under certain conditions 2010-09-17 13:52:38 +00:00
Campbell Barton
5452f335d7 New optional operator function, check(), it takes the same arguments as execute().
This runs after changing a property and allows correcting incompatible options.
 Returning True will redraw the UI.

Currently this is used for setting the write extension when saving files, so changing the image format also corrects the extension.
The same is accessible from python where its used when saving SVG/EPS/PNG files.

This fixes: [#23828] obj export problems, [#23760] Exporting OBJ and filetype ending
also fixed document submission operator.


Now the filename in the file selector is the one used for writing this means we remove the "Save Over" popup which could be overlooked too easily.
Instead display the filename field with red tint, and a note in the tooltip.
2010-09-17 09:27:31 +00:00
Campbell Barton
945ae25409 fix for some errors when saving blend files.
- when comparing with libraries, relative paths were used which could easily fail.
- testing libraries was done before adding the .blend extension.
2010-09-17 08:53:39 +00:00
Sergey Sharybin
b9a3da9080 Fix #23869: outliner not updated correctly/instantly
Added ND_OB_SELECT notifier to separate operator. Selected objects
aren't actually changing, but there is no existing ND which could be used
for outliner update.
2010-09-17 06:52:48 +00:00
Campbell Barton
e546d7666b minor changes needed for the next commit.
- BKE_add_image_extension now sets the extension rather then appending. (no more image.jpg.tga)
- py/rna functions which have no return value now raise an error if a non-None value is returned.
- added back the red-alert flag so buttons can have a red highlight if somethings wrong.
2010-09-17 05:58:06 +00:00
Brecht Van Lommel
5ae75d5dc8 Fix #23652: texture paint RMB would translate the object after sampling
color, made sample a modal operator now to solve this. It's an indirect
solution, but couldn't think of anything better, and it's useful to have
anyway.
2010-09-16 21:03:07 +00:00
Brecht Van Lommel
7d0e17922a Fix compile error after last commit in boids. 2010-09-16 20:33:46 +00:00
Janne Karhu
e7a393d2e1 Tiny addition to boids functionality: pitch value
* Controls maximum rotation around side vector (as opposed to banking, which controls rotation around forward vector)
2010-09-16 20:06:10 +00:00
Janne Karhu
43d2d0c6ea Bug fix: Boids that could only fly didn't take the ground object into account leading to problems when flying near the ground.
Reported by Mike Pan and Dalai Felinto by mail.
2010-09-16 20:00:30 +00:00
Brecht Van Lommel
39113a3582 Fix #23857: game engine world colors were not color corrected yet,
giving inconsistent results with render/UI.
2010-09-16 19:03:01 +00:00
Brecht Van Lommel
7abb3217e3 Fix #23867: GroupNode.nodetree name inconsistent with Material/Texture.node_tree,
changed to the latter, patch by Dan Eicher, thanks!
2010-09-16 19:00:15 +00:00
Sergey Sharybin
2c79fa84b6 Fix #22603: Crash on launching external editor in texture paint [r29461] [WinXP 32bit]
Crash was caused by missed offscreen OpenGL buffer. Added checking around this stuff.
Also fixed crash of simple "Image from view operator".

Note: This commit fixes only crashing, you'll be still unable to use this tools.
2010-09-16 15:54:48 +00:00
Campbell Barton
f788c68b9c bugfix [#23831] Removing an IK Constraint in pose mode still draws bone with IK highlight
+ moved bone envalope scale into transform menu, pose menu is getting huge.
2010-09-16 07:14:48 +00:00
Campbell Barton
4a840db7e9 armature selection when entering editmode wasnt working well (in 2.4x too)
root bone selections were cleared if there was no connected parent. Now only set the root selection state if there is a connected parent.
2010-09-16 06:28:11 +00:00
Campbell Barton
26b41bd0b5 bugfix [#23841] Bone envelope draws funky 2010-09-16 06:04:47 +00:00
Nathan Letwory
666b65a8d0 Make sure rna_armature.c compiles. Use BLI_math.h that includes <math.h> and ensures it compiles on all platforms. (fix for r31956). 2010-09-16 05:49:09 +00:00
Campbell Barton
36c273b1f7 - bone roll now in degrees not radians.
- rna buttons with units set now use the units base value for snapping. 
- bone head/tail radius could be set negative.

matt: removed a check in ui_is_but_unit() which made angle buttons return false, what was this for?
2010-09-16 04:19:22 +00:00
Brecht Van Lommel
d08a40450e Fix cmake/osx blenderplayer linking. 2010-09-15 19:03:52 +00:00
Campbell Barton
7d8f0fce7a patch [#23758] Better handling of UTF chars in UNITS fields (lengths, angles, etc.)
from Lorenzo Tozzi (oni_niubbo) with minor edits.

--- from the tracker
The present situation is this: due to bug#22274, during editing, UTF chars are stripped from buttons with a unit associated
(length, angles, etc.).
Example: if the button displays '90°' and you click on it with LMB, the editing string will become '90'.

The problem arises if you use microns: '34µm' becomes '34' that blender interprets as 34 meters. So clicking on a button
and hitting enter won't confirm the previous value, but will change it (very badly also).

Of course nobody is using microns in blender, but the problem will arise when we will implement areas and option 'Separate
Units' will be enabled. The value '2m² 3cm²' will become '2m' during editing.

This patch solves the problem rewriting the string in a smarter way than just stripping the UTF chars: the unit is translated
from unit->name_short ('µm') to unit->name_alt ('um'). So clicking on '34µm' the editing string will become
'34um'.
--- end

note: rather then allowing empty strings in name_alt field I made it so if the unit system was the default one a NULL name_alt will just strip the string, since its the default its not needed.
2010-09-15 17:37:00 +00:00
Campbell Barton
e6ce108f5c ignore BLI_bfile with cmake since its not used anywhere 2010-09-15 16:23:04 +00:00
Campbell Barton
9b518710c6 update for MingW/CMake
- ignore MSVC warnings when FREE_WINDOWS is defined to quiet warnings.
- the CMake flags were not being set correctly making blender have weirdo colors (no -funsigned-char).
2010-09-15 16:13:32 +00:00
Nathan Letwory
95a3f41096 Don't do weird PYTHONPATH juggling anymore. Debug build crash doesn't happen anymore since proper libs have been committed.
Hopefully this helps in cases where people have PYTHONPATH set on their system to an incompatible Python version, which can result in crashes.
2010-09-15 15:29:31 +00:00
Campbell Barton
d5ee95644d win32 mingw works again with cmake 2010-09-15 14:36:32 +00:00
Campbell Barton
1e291017ca add missing notifiers for bone circle/border/lasso select. 2010-09-15 13:22:36 +00:00
Campbell Barton
4828d0cba0 bugfix [#23830] Border selecting bones in editmode bug
was missing a call to glLoadName(-1); so drawing commands after the bone were taken into account with the selection.

made some other minor changes that dont change functionality.
2010-09-15 13:07:36 +00:00
Nathan Letwory
2ac0a5637c Apply patch [#23779] Small cleanup with gl_roundbox*
By Luca Bonavita (mindrones)

The patch renames and moves gl_round_box, gl_round_box_shade and gl_round_box_vertical_shade to UI_interface.h, so the extern usages are not needed anymore.
2010-09-15 12:18:50 +00:00
Nathan Letwory
d97d727d09 Apply patch [#23755] Sequencer: small code cleanup using existing color math functions
By Luca Bonavita (mindrones)

From detailed description: This patch doesnt change functionality, but uses the existing color math functions from math_color.c into
sequencer_draw.c.
2010-09-15 11:58:19 +00:00
Nathan Letwory
8a25c33fca Apply patch [#23809] Blender.exe -W support
by Dalai Felinto/Nathan Letwory

This basically implements -W support for Blender.
2010-09-15 11:48:59 +00:00
Campbell Barton
fadf169190 - rna properties for bones, select_head, select_tail
- fix for minor inconsistency in armature selection, entering editmode and selecting a bone would move the manipulator because the selected bones, childs root wasnt selected on entering editmode.
- use copy_v3_v3 rather then VECCOPY in editarmature.c
2010-09-15 08:03:33 +00:00
Campbell Barton
a8db76f00e fix for error in last commit. 2010-09-15 08:00:19 +00:00
Dalai Felinto
ee7a2ccb22 BGE Dome: fix for "objects parented to the camera will be rendered multiple times in Dome mode"
The funny thing is: I only spotted this bug in March of this year. Almost one year after the original release. I think I don't parent objects to the camera often.

In terms of code I think that I can even think in a more elegant solution. I don't really need to rotate the camera, but simply to calculate its Modelview Matrix.
"""
m_rasterizer->SetViewMatrix(viewmat, cam->NodeGetWorldOrientation(), cam->NodeGetWorldPosition(), 1.0);
cam->SetModelviewMatrix(viewmat);
"""
The reason why I originally was rotating the camera was to make sure the frustum calculation was using the right camera frustum. For the frustum it takes the camera modelviewmatrix so the rotation really shouldn't be necessary. Leaving as it's for the time being.

* Note: the bug was never officially reported
2010-09-15 07:05:55 +00:00
Campbell Barton
9234f29e67 bugfix [#23405] PNG Images bigger then 2gig wont load with blender.
all image formats should be able to load files bigger then 2gig (when its supported)
2010-09-15 06:43:36 +00:00
Campbell Barton
7eb7410002 remove inventor and vrml1 support, we're better of having these legacy formats as addons. 2010-09-15 05:57:48 +00:00
Dalai Felinto
e2a0b302ff Logic UI: reset the value of a key when clicking outside the input button
Otherwise you had no way to set it to none. This doesn't really matter, but it's nice "userwise" to be able to clear the pressed key.
2010-09-15 04:42:01 +00:00
Joshua Leung
d2a1218210 Two small bugfixes:
- A property used in an 'active' poll for UI code in the NLA Editor was missed during the RNA renaming madness, leading to error prints in the console

- For matrix blending code, 'fsize' arrays were being declared wrong size (4 elements long instead of 3).
2010-09-15 04:15:42 +00:00
Daniel Salazar
a3470be1bc Allow start frames < 1 on image sequences. 2010-09-15 03:45:33 +00:00
Campbell Barton
8d0c01e6e2 keyconfig updates/changes
- use preset subclass with funcs for updating the keyconfig
- keyconfig filenames are used for the UI names as with presets (so separation anymore)
- keyconfig's are stored in the preset dir (scripts/cfg dir removed)
- only the active keyconfig script is loaded
- some bugfixes for saving keymaps
- user interactions no longer saves keyconfigs too, I think this needs to be re-worked.

developer note...
multiple keyconfigs at once are not really needed now that they are stored & accessed directly in python.
for now I left it alone but we could consider to remove this capability in the future.
2010-09-14 16:45:24 +00:00
Campbell Barton
ce98d6ae17 fix for own bug for font buffer drawing (only effected the bottom line of the stamp) 2010-09-14 12:35:02 +00:00
Janne Karhu
baadd70ea1 Fix for [#23794] Particle System + FS Motion Blur corrupts some frames and possibly cache 2010-09-14 12:17:09 +00:00
Janne Karhu
a1ff472e07 Particle edit brush strengths were loaded wrong for old files. 2010-09-14 09:32:43 +00:00
Dalai Felinto
46f25680aa blenderplayer fix for "offset" problem when in fullscreen mode (worked together with Nathan Letwory - jesterKing)
The FullScreen state was never set. Therefore the window boundary was returning the wrong dimensions (it was assuming that it was not fullscreen).

* Note: blender.exe -W has a similar problem. We are working on that ...

Tested in Windows only. If someone can test in Linux and OSX please let me know if it's good there as well. To test it: ./blenderplayer -f myfile.blend
2010-09-14 08:19:42 +00:00
Janne Karhu
7245177c26 Fix for a particles memory leak:
* Hair wasn't freed properly when changing particles from hair to normal particles.
2010-09-14 01:47:01 +00:00
Janne Karhu
ca940016e1 Fix for [#20350] particles are offset from emittor in dupli-objects 2010-09-14 01:43:46 +00:00
Dalai Felinto
9cc3f7dd98 "flip -> pen_flip" missing rename on particle edit mode
(it was raising the error RNA_boolean_set OperatorStrokeElement.flip not found ) [Thanks Mike for spotting that :p]
2010-09-14 01:11:54 +00:00
Nathan Letwory
ba2a9ae88e Fix [#22612] FFMPEG writes incorrect Xvid FourCC code
Reported by Karl Nyman

When XVID is chosen for FFMPEG make sure that XVID is written for FourCC code.
2010-09-13 12:56:39 +00:00
Janne Karhu
74f060bfe5 Fix for [#23729] Smoke / Edit Mode bug 2010-09-13 11:14:12 +00:00
Dalai Felinto
898e7857f4 blenderplayer parsing code (better) fix
After last commit I realized that we have a different behavior when running blenderplayer or a runtime. Reason being is that when running blenderplayer the filename is mandatory. While in runtime mode it has no use for it (it can still be passed, but it makes no difference).

I also updated the -h (help) message to be multiplataform and to pass the filename argument only when in blenderplayer mode.

If someone wants to have fun it would be nice to port the blender new parsing code to the gameplayer.
* note: how come "noaudio" is used in the examples but it's not in the options list? *ouch*
I'm leaving as it's in case noaudio get implemented ...
2010-09-13 08:30:56 +00:00
Campbell Barton
cd1dc29e65 patch [#23221] Merge bone : Within chains : infinite loop
from Yvon Tanguy (vono)
2010-09-13 07:30:11 +00:00
Campbell Barton
0c815a42fd bugfix [#23528] ED_pose_channel_in_IK_chain() doesn't take length of IK chain into account 2010-09-13 06:57:03 +00:00
Campbell Barton
bd5a62cfcb bugfix [#23068] Image editor: Update Automatically not updating the compositor.
[#23637] Replacing an image used in the compositor crashes
       [#23343] changes in images doesn't update compositor image nodes
2010-09-13 06:08:26 +00:00
Campbell Barton
18702a9eef bugfix [#23001] Addons do not unregister properly in Blender 2.5.3
Now reloading the user defaults also unloads/loads addons, resetting the state to the one set in the user preferences.

moved addon functions into bpy.utils
- bpy.utils.addon_enable(name, default_set=True)
- bpy.utils.addon_disable(name, default_set=True)
- bpy.utils.addon_reset_all(name, default_set=True)

the user preference operators now just wrap these.
2010-09-13 04:52:56 +00:00
Dalai Felinto
9153e82d21 blenderplayer commandline argument fixes (for -f and -w)
argc always include the filename, therefore all the optional parameters should check for < argc instead of <=argc.

E.g. That was causing "blenderplayer -f 800 600 myfile.blend" to play in a wrong  Bpp (since it was trying to parse the filename to fullScreenBpp).

Bug introduced on rev. 16448 (in 2.49) and merged to 2.5 in rev. 19323
2010-09-13 04:52:20 +00:00
Joshua Leung
c4a83ec086 Bugfix: Timeline did not refresh when changing selecting a bone
This happened/was most noticeable when clicking on a bone of an armature in posemode but not active (i.e. some object other than the armature is active when trying to select the bone).
2010-09-13 00:47:12 +00:00
Arystanbek Dyussenov
396aece473 Partial fix of bug #23543 in COLLADA exporter:
* multiply the diffuse and specular colors by their respective intensities
* only output <transparency> if MA_TRANSP flag is on
* only output <reflective> and <reflectivity> if MA_RAYMIRROR flag is on
2010-09-12 20:19:15 +00:00
Campbell Barton
b6a36a3b89 silance compiler warning. 2010-09-12 14:46:41 +00:00
Campbell Barton
74059891e9 option to disable ITASC IK solver, (will be enabled by default ofcourse)
- option only available to cmake, scons and make have this enabled always.
- without this clang/llvm can compile blender
- this was the second biggest internal lib, 192mb -> 172mb for all blenders libs (with debug flags), so gives some speedup to linking.
2010-09-12 12:27:12 +00:00
Campbell Barton
1fdfcf47a0 building without python was broken 2010-09-12 12:09:31 +00:00
Dalai Felinto
3a2fc4d6dc BGE module reshuffling - VideoTexture -> bge.texture
this was the one module left to be renamed.

We didn't get to any conclusion in the mailing list, but Campbell suggested texture and I think its a good name. We can change any time before next Beta, but for now I think it's handy to have something.

The original proposal is from May:
http://lists.blender.org/pipermail/bf-committers/2010-May/027587.html
2010-09-11 19:38:11 +00:00
Campbell Barton
386bd71240 pyrna: replace method for operators forwarding getattr/setattr access from self.* to self.properties.* 2010-09-11 15:13:22 +00:00
Campbell Barton
ae6e013c15 new materials and cameras had incorrect usercounts when added from python 2010-09-11 06:27:38 +00:00
Campbell Barton
5d229db946 incorrect docstring 2010-09-11 06:15:37 +00:00
Campbell Barton
b2b0869212 - camera max zoom limit was inconsistent
- camera pan now follows the mouse
2010-09-11 04:39:00 +00:00
Campbell Barton
63a8056839 - py api splash URL was old, use blender version (menu was ok in the menu)
- netrender reloading fix
2010-09-11 04:23:45 +00:00
Matt Ebb
1fe90ba049 Fixed the splash screen: previous had incorrect colour, typography, no transparent header. 2010-09-11 00:19:38 +00:00
Matt Ebb
0df7cde29a Fix for own stupid bug the other day, messed up the gradients in selected/deselected UI elements.
Didn't know beta was going to be today, really hope this makes it in!
2010-09-11 00:08:07 +00:00
Ton Roosendaal
61c50403b0 Part 1 of 2.54 beta build commit 2010-09-10 16:29:19 +00:00
Arystanbek Dyussenov
5416fee99a Bug #23715: patch by Jan Diederich to avoid having duplicate IDs after they are translated.
For example, object ID names "1a", "2a", "3a", will be exported as "_a", "_a2", "_a3". Thanks Jan!
2010-09-10 15:24:10 +00:00
Campbell Barton
5559a0d52e rewrote python IDProperty metaclass in C, this was a quick hack to get it working.
The reason this didnt work is all sibclasses of pythons type() or PyType_Type in C, have to have their size set to sizeof(PyHeapTypeObject) rather then sizeof(PyTypeObject) as you might expect.
This is strange since its not a heap-class (defined in pythons runtime), but a static C type, so Im not sure about this, and cant find any documentation but it seems to work ok.
2010-09-10 14:54:50 +00:00
Janne Karhu
fc6d27313b Fix for [#23090] Blender 2.5 : move object to new layer crashes Blender 2010-09-10 08:36:14 +00:00
Sergey Sharybin
46f0fbcf0a Fix #23742: a NURBS surface created with two joined curves crashes Blender on rendering
Nurb's material number used to be clamped to [0;-1] for case object hasn't got
materials. Forced to keep material number on zero if object hasn't got any materials.
2010-09-10 06:05:18 +00:00
Campbell Barton
cf4e32a06c remove redundant buffer character positioning code & remove attr keyword argument from property definitions. 2010-09-10 04:04:48 +00:00
Campbell Barton
5bf97d7786 bugfix [#23607] Render Stamp, incorrect apostrophe Y position. 2010-09-10 03:56:11 +00:00
Campbell Barton
a7fe586c94 patch [#23749] IntVectorProperty missing step [patch]
from Dan Eicher (dna), also edited some comments.
2010-09-10 02:46:29 +00:00
Campbell Barton
7bd1f9a234 - bugfix, operators were getting their properties registered twice.
- operator properties are now converted into python property() class members which bypass the operator 'properties' member.
  self.properties.mysetting
 ... can now be written as ...
  self.mysetting
- fix for error reloading rigify
2010-09-09 17:41:36 +00:00
Campbell Barton
f9367c4c4d definition/syntax edits for operators and rna (no functional changes) 2010-09-09 17:36:54 +00:00
Campbell Barton
9bdb7b5ffa fix crash for calling setattr with a non-string attribute and warning. 2010-09-09 13:58:38 +00:00
Janne Karhu
2dbb96b972 Partial fix for [#21948] Full sample motion blur with cloth - cloth and collision object render issue.
* Now cloth reads cache using subframes when rendering.
* Cloth cache also was reset every time on the start frame which kind of defeats the point of the caching.
2010-09-09 11:07:07 +00:00
Arystanbek Dyussenov
7abf2faa20 Bug #23715 in COLLADA exporter: prepend an '_' to the ID if it starts with an illegal character.
Pointed out by Tom Haines. Thanks!
2010-09-09 11:01:30 +00:00
Arystanbek Dyussenov
ad48fd1db9 Patch by Jan Diederich, fixes bug #23715 in the COLLADA exporter.
Allow IDs to start only with an alphabetic character replacing digits with an '_'.
2010-09-09 08:14:36 +00:00
Janne Karhu
a755f9f7ed Fix for [#23734] Force Fields Min/Max don't work
*Special case for planar vortex field
2010-09-09 07:52:35 +00:00
Campbell Barton
45cf7633fe remove class methods for defining properties
eg: bpy.types.Scene.BoolProperty()
2010-09-09 06:29:44 +00:00
Campbell Barton
ced3f3ad15 - fix for using ['prop'] in RNA api
- fix for testing without USE_PY_METACLASS defined.
2010-09-09 06:06:37 +00:00
Campbell Barton
f4be9a6393 support for defining rna class properties as class attributes
eg:
 bpy.types.Scene.myprop = BoolProperty()
 
note, this uses an ugly python metaclass, this should be replaced with a C implimentation which is included but commented out, causing crashes in pythons GC which gives no hint as to where the bug comes from.
2010-09-09 05:37:22 +00:00
Nicholas Bishop
4eaa10aa02 == Multires ==
Fixed bug #23657, "Modifiers dosen't work when you select diffrent mesh for object"

Multires modifier now adds empty mdisps if they're missing, rather than displaying a warning
Switching an object's mesh will now check for a multires modifier; if found the modifier's total number of levels are reset to match the mesh's mdisps
Switching the mesh also forces a multires update so that sculpted changes aren't lost
2010-09-09 00:14:51 +00:00
Campbell Barton
2d4e8ba22f bugfix [#23725] bpy.context.window_manager. 2010-09-08 21:47:16 +00:00
Janne Karhu
f0fe8a559d Partial fix for [#23714] Linked instance group with particles doesn't render properly
* Only partial because rendering of dupliobjects / groups with particles isn't yet fully implemented
2010-09-08 11:08:34 +00:00
Campbell Barton
128bd96c01 py/rna internals
- rna internal deferred properties now store the functions as PyObjects rather then C function pointers
- Property functions now allow the first non keyword argument to be a class.
2010-09-08 10:43:36 +00:00
Campbell Barton
6d82951947 bpy.props.* option to pass the first arg as a class. 2010-09-08 08:48:40 +00:00