Commit Graph

27929 Commits

Author SHA1 Message Date
Andrea Weikert
0b1e517052 fix compile on MinGW, missing define in the mingw headers. 2011-01-17 19:39:25 +00:00
Ton Roosendaal
d591ab5355 Bugfix 25683
Compositor operators now have better poll check, so they won't
show up in operator search or hotkeys for other node views.

- backimage move, size
- read renderlayers
2011-01-17 18:38:44 +00:00
Ton Roosendaal
0828710204 Bugfix #25657
Three code fixes for 1 report. User experienced crashes while
painting on float buffer + having preview renders on.

- Texture Nodes: Image was re-allocated without using
  proper thread lock
- Paint code: old convention to free the byte rect from
  a float image as signal to re-create now is a proper
  flag. This keeps image memory unchanged. Nice for render.
- Imbuf: call to make a byte rect from float was freeing
  mipmaps unnecessary.
2011-01-17 18:16:10 +00:00
Ton Roosendaal
4b7930dbbd Bugfix #25681
Python API allowed to make links with input->output reversed.
Now node api checks for this case and flips order.
2011-01-17 15:16:08 +00:00
Nathan Letwory
9924ade102 test commit for svn link in commit mail, part two 2011-01-17 10:47:31 +00:00
Nathan Letwory
637f4273aa test commit for svn link in commit mail 2011-01-17 10:43:51 +00:00
Joshua Leung
d769ff0d26 Bugfix [#25667] "X-Axis Mirror" in the Pose Options panel toolbar is
misleading (?)

"X-Axis Mirror" option didn't work in Pose Mode, so hiding this option
for now. Perhaps one day we could properly support this for all
operators there, but that is more of a long term todo...
2011-01-17 10:35:04 +00:00
Campbell Barton
9d2292ef7e misc maintenance changes
- metaball tessellation functuion was calculating density when it didn't need to.
- image drawing was using a float as a loop counter, in extreme cases this could cause an infinite loop.
- remove/comment unused vars.
2011-01-17 08:31:57 +00:00
Joshua Leung
c42e382994 More consistency with order of action vs gp keyframes... 2011-01-17 08:27:16 +00:00
Joshua Leung
80c81605a1 Bugfix [#25674] No Box Select in Dopesheet
Border select was broken during Grease Pencil mode work
2011-01-17 08:21:13 +00:00
Campbell Barton
fd448bcfc7 remove/comment unused defines, also zero FileGlobal.filename to quiet valgrind. 2011-01-16 21:12:38 +00:00
Campbell Barton
26ee86b20d These files are needed for booleans (which I had disabled)
reverse merge:
svn merge . -r34357:34356
2011-01-16 20:52:15 +00:00
Campbell Barton
627d47c322 remove MSVC 6.0 workaround. 2011-01-16 20:25:47 +00:00
Campbell Barton
e3c69e6cfe remove unused memutil classes 2011-01-16 19:55:50 +00:00
Lukas Toenne
4f0b7650e9 Adding links to groups using the links.new function in RNA wasn't updating the group owntype. This lead to sockets being linked and external at the same time. 2011-01-16 18:38:54 +00:00
Nicholas Bishop
c94eefd52b Fixed bug [#25649] Image editor paint icon missing until enter weight
paint

A couple underlying issues:

* Paint icon was looking only at the object mode to determine what the
  "current" mode is, but that gave problems when the object mode was
  anything other than texpaint, but 2D image paint was turned on. Fix
  was to also look at what space is being drawn, and only if it's in
  the 3D view does it look at the ob mode.

* The brushes lists weren't getting filtered correctly in the same
  case where 2D image paint was on but a different object mode is
  enabled. Fixed by changing the brush rna poll to look at the paint
  source, rather than the object mode.
2011-01-16 18:33:08 +00:00
Ton Roosendaal
6ef1f23a33 Bugfix, IRC report
Texture nodes: including output node in group crashed when it got
connected. Note that this feature is not supported to do anything
else than temporarily giving an output when editing node groups.
2011-01-16 17:12:02 +00:00
Lukas Toenne
dbb5e5dec2 Fix for 25655: Crashes with texture node in compositor.
Texture node was using the preview buffer instead of socket output buffers, which is already free'd at that point.
2011-01-16 16:00:06 +00:00
Campbell Barton
e025bf3967 defining types via python gave confusing errors because DefRNA.laststruct was being used for errors when the new property wasn't on the last struct.
added CONTAINER_RNA_ID() define to get the ID from the ContainerRNA type.
2011-01-16 15:02:07 +00:00
Campbell Barton
5b3bf80dd8 detect mathutils types with mathutils_array_parse(), was using PySequence_Fast(), converting into a tuple every time then back to a float array.
gives approx 6x speedup with eg mathutils.Vector(some_vector).
2011-01-16 11:26:01 +00:00
Campbell Barton
ba96f02d4a use fast sequence functions for python's bpy.props.EnumProperty() arg parsing. 2011-01-16 10:36:27 +00:00
Campbell Barton
4dd92a988a Defining bpy.props.EnumProperty(... , options={'ENUM_FLAG'}) wasnt working right with default values. 2011-01-16 10:08:20 +00:00
Campbell Barton
a72f02c025 fix for using un-initialized stack memory with bullet triangle mesh collisions.
the 4th component of the vector is used later when copying the vector.
2011-01-16 06:16:28 +00:00
Campbell Barton
743182106f py api: bpy.path.abspath(), option to return relative to a path other then the current blend file. 2011-01-15 20:35:31 +00:00
Campbell Barton
fd7b6519fd move to bf-extensions 2011-01-15 19:36:01 +00:00
Campbell Barton
cae4e92ce8 bugfix [#25640] Cannot edit custom property values in it's popup window 2011-01-15 19:15:35 +00:00
Ton Roosendaal
ebfb96c125 Bugfix:
Texture nodes, the Image node didn't get initialized on load.
This caused the node to refuse accepting a new Image if a
file couldn't be found on saving.
2011-01-15 18:00:46 +00:00
Campbell Barton
86bbab7de5 remove/comment unused defines. 2011-01-15 16:14:57 +00:00
Campbell Barton
f66912a335 misc edits, no functional changes
- enabling/disabling no longer prints in the terminal unless in debug mode.
- remove 'header' struct from BLI_storage_types.h, from revision 2 and is not used.
- Add GCC property to guardedalloc to warn if the return value from allocation functions isn't used.
2011-01-15 15:48:46 +00:00
Sergey Sharybin
c6abe11512 IRC bugreport fix: thumb brush works incorrect when using tablet by Dan McGrath (troubled)
Quite silly fix, not sure if it could be smarter with current events/brushes design.
Use pressure_value from first brush step for brushes which don't support strokes -- thumb.
brush, brushes with anchored stroke method.

Should be fixed in nicer way after events redesigning.

P.S. Tried to place pressure saving into invaliants update fuunction, but it seens
     that this function wouldn't know about pressure yet.
2011-01-15 14:48:44 +00:00
Ton Roosendaal
384025f1a0 Bugfix #25636
On using loop-selects, the active vertex got cleared, it could still
simply indicate one of the vertices of indicated edge to become active.
That keeps the Ui for vertex-groups drawing correct, for example.

Also made loop-ring select store active edge for tools, like the loop-select.
2011-01-15 14:07:11 +00:00
Janne Karhu
4cb79661eb Fix for [#25633] Particles display switching causes crash when Velocity disp. ON
* Particle draw data wasn't freed properly in some cases.
* Velocity + circle draw type also crashed due to missing null pointer check.
2011-01-15 12:29:22 +00:00
Janne Karhu
7297169a74 Fix for [#25637] curveguide forcefield(Kink: Braid) + particlesystem cause crash by Null Pointer in some cases
* Missing null pointer check.
2011-01-15 12:00:15 +00:00
Campbell Barton
69c582a3d4 error in last commit, also skip getting vars for wm_operator_reports() when there are no reports. 2011-01-14 21:45:49 +00:00
Campbell Barton
eac31a2ece remove unused vars & avoid some clang warnings. 2011-01-14 21:06:28 +00:00
Campbell Barton
94b9d2da54 checking wrong null pointer in edit_modifier_poll_generic(). 2011-01-14 19:35:59 +00:00
Campbell Barton
255a1e0ed7 apply fix from r34275 to BLI_dynstr_appendf(), dont chop off last character for >256 length strings. 2011-01-14 19:15:06 +00:00
Campbell Barton
d340fb94a8 new startup.blend with official io addons enabled,
also include STL since this is an important format which we can support officially.
2011-01-14 17:41:33 +00:00
Campbell Barton
c69ecd3f90 moving io scripts to 'addons' dir in extensions svn, leaving MDD format since I dont maintain this. 2011-01-14 17:28:10 +00:00
Sergey Sharybin
439140d6ae Todo item #19816: Wave modifier does not affect Curve Paths
Added new option for applyong modifiers on splines' points. This moves
tesselation point and path would be affected by modifiers which are applied on
splines' points.
2011-01-14 16:57:53 +00:00
Campbell Barton
9d8d25cc34 add icons to show community vs official scripts as well as buttons to filter by support level (currently all scripts default to community)
note: we need better icons for this.

 also formatting edit for ply import.
2011-01-14 16:49:43 +00:00
Campbell Barton
dc1e1baabf rename bl_addon_info --> bl_info, because this isnt necessarily used for addons. 2011-01-14 15:21:13 +00:00
Joshua Leung
62eb77c119 Transform tweak:
2D Editors using the standard translation transform tool no longer
have their values converted. For instance, it simply didn't make much
sense in such editors to be showing frame numbers/timing in terms of
meters/inches.
2011-01-14 06:46:28 +00:00
Joshua Leung
af4bc28c44 Bugfix [#25617] HOME Key in fcurve editor doesn't center properly
* When euler-rotation F-Curves had a single keyframe only, the view
would be artifically extended to fill up to 57 (this comes from the
radians to degrees calculations) due to a combination of the bounds-
finding function enforcing a minimum separation of 1 unit between
min/max. This has now been moved to the operator-level where it gets
applied AFTER these conversions have taken effect

* F-Curves with samples only (i.e. baked F-Curves) would be ignored by
these operators. Was caused by using a poll calback that only
considered whether there were keyframes. Hopefully this is sufficient;
otherwise a hybrid poll method will be needed.
2011-01-14 05:19:04 +00:00
Joshua Leung
423fbcfa5c Driver creation hack:
Drivers created from the Properties Editor for Materials and Textures
will now be created on Object-level instead of on their owner
Material/Texture as for their keyframes.

The intention of this hack is to allow users to be able to easily set
up drivers for materials and textures. Without this hack, users would
have had to do this manually via the Datablocks editor (I've described
this method a few times in detail, though this still attracts
complaints), as the way the depsgraph works does not allow ID blocks
other than Objects and directly-linked Object data to be driven. As a
result, although this hack can be done for these two cases, there are
no workarounds possible for Scene and Scene-linked settings.

There are 2 issues that will be noticed with this approach:
1) There may be confusion over why the drivers are found under Object
level and not Material/Texture level.
2) Driver status will not be shown in the buttons, leading to attempts
to try to keyframe the properties directly later and subsequent
confusion when finding that that won't work.

However, these are the sacrifices we'll need to make to get easy-setup
working in the meantime until the proper fixes can be done.
2011-01-14 02:06:35 +00:00
Campbell Barton
3bf46c57c9 add ply import into the file menu. 2011-01-14 00:23:21 +00:00
Campbell Barton
ac5b048e99 initial 2.5x api port. basically working. 2011-01-14 00:06:43 +00:00
Joshua Leung
619c287851 Reverting r33930 and r34202, which were related to bugs #21825 and
#25554. As found by Daniel Lara (Pepeland) in #25554, the original
problems in #21825 all stemmed from the ChildOf constraint there
having an incorrect inverse set, which was altering the final results.

Now Auto-IK works nicely for old rigs again (i.e. FK arms on BBB rigs)
2011-01-13 23:53:14 +00:00
Campbell Barton
7c7b31cf84 python3 updates: 2011-01-13 23:38:25 +00:00
Campbell Barton
de5d321e71 pep8 cleanup. 2011-01-13 23:31:04 +00:00