Commit Graph

47594 Commits

Author SHA1 Message Date
Ton Roosendaal
f543fe1500 Bugfix #25341
Child-of constraint issue: on adding, it wasn't checking owner
correctly for Bones, resulting in a constraint working in wrong
space; it looked as if transform was applied double when moving
the object. Only adding via Py API went wrong btw.

Also found a silly check for drawing constraints, which caused
constraint initialization to happen for every object on every
redraw!

Implementation note: con->flag CONSTRAINT_SPACEONCE was only used
for child-of constraints in Bones, so I've patched it on file
reading to always set the flag. Marked with XXX, so it can be
removed one day. Now at least things get corrected well for
imported armatures.
2010-12-23 13:16:56 +00:00
Ton Roosendaal
1ea491d615 Bug #25354
In some cases, a LMB-drag was drawing a stippled line. Leftover of 
WIP code for support of gestures in Blender. 
Disabled drawing for now, until gestures is back in control.
2010-12-23 10:34:37 +00:00
Tamito Kajiyama
2d1bc90eed Added Python wrappers for the following Operators static methods:
- getViewEdgeFromIndex()
- getChainFromIndex()
- getStrokeFromIndex()
2010-12-23 09:21:41 +00:00
Tamito Kajiyama
1bc3b1fc0c Fix for the FILE directive to recursively include *.h files. 2010-12-23 09:19:35 +00:00
Campbell Barton
b4f61f0733 remove View3D.customdata_mask, since its stored in the scene now there is no need for each view to store every views combine data mask. 2010-12-23 04:26:53 +00:00
Campbell Barton
c046ae14be Fix for multiple modifier stack calculations per frame.
Since 2.5x blender has been using CD_MASK_BAREMESH for updating objects since object_handle_update() no longer has access to G.curscreen to calculate the mask from viewports.

The problem with this is after an initial calculation, CD_MASK_MTFACE may be required on draw, so it would recalculate the modifier stack multiple times per frame.
One case which caused this is armature animated mesh with texface in a dupligroup.

Fix this by having customdata_mask member in the scene, this isn't great design but at least fixes the bug and only changes a few files.
2010-12-23 04:16:31 +00:00
Campbell Barton
86b89af5dd use ICON_NULL define rather then 0, makes UI calls less confusing. (no functional change)
eg: uiItemR(row, &dvar_ptr, "type", 0, "", 0); -> uiItemR(row, &dvar_ptr, "type", 0, "", ICON_NULL);
2010-12-23 02:43:40 +00:00
Joseph Eagar
ff3200d4d5 Edge slide works again, some small issues may remain though. 2010-12-23 02:14:03 +00:00
Campbell Barton
f0951e86ee fix for PyC_LineSpit() finding the current line of the frame's code object. 2010-12-23 00:19:34 +00:00
Campbell Barton
5e382eb8e5 rename blenderlib to blender_add_lib 2010-12-22 23:09:30 +00:00
Guillermo S. Romero
29799bf09c Compact -I paths in makefiles for more readble files/output.
Also some white space cleaning and removal of redundant parameter.
2010-12-22 22:15:20 +00:00
Campbell Barton
54343b79e6 remove reload() from builtins since python3 no longer uses this.
use imp.reload now.

Should use import hooks but for now replace imp.reload with our own reload as the builtin reload was replaced before.
2010-12-22 21:39:48 +00:00
Sergey Sharybin
2811707b92 Fixed stupid typo with detecting corners of source mdisp.
Haven't noticed before because destination is a copy of source for now,
so there would be always the same count of corners.
2010-12-22 21:38:06 +00:00
Ton Roosendaal
dcd8c516dd Bugfix #25348
EdgeSlide: cancel didn't refresh UVs in mesh for cancelled 
state. Also loopcut suffered this.
2010-12-22 19:12:00 +00:00
Ton Roosendaal
3a81eca027 Report #25350
Loopcut check for deformed meshes was far too wide, it even disabled
loopcut on subsurfs.
Now added a check for armature/lattice only, and only give a warning,
not a return from the tool.
2010-12-22 18:46:54 +00:00
Ton Roosendaal
0db7bdf00a IRC fix: removing material slot from Object didn't refresh 3D correct.
Missing ID tag update.
2010-12-22 17:38:08 +00:00
Ton Roosendaal
ff7d106da4 Related to previous commit: Custom shapes for Bones now increase user
counter for linked objects.
2010-12-22 16:44:28 +00:00
Ton Roosendaal
f4e5addf93 Bug fix, IRC, patch provided by Dan Eicher
Custom bone shape link/unlink now respects ID user counting.
2010-12-22 16:33:13 +00:00
Joerg Mueller
01bb474d4f Audio: Function to get channel count of a sound, for [#25062] Sound Actuator - Positional Audio. 2010-12-22 16:07:57 +00:00
Dalai Felinto
d729c0cff7 svn merge -r 33849:33848 [overcommitted due to the server problems we had early today] 2010-12-22 15:10:42 +00:00
Ton Roosendaal
51a7995269 Bugfix, IRC, textures or displacement on metaballs didnt work.
Commit 32361 from Campbell made quite a silly optimize mistake...

ver->orco= orco+=3;

Which is of course not:

ver->orco= orco; orco+=3;

Triple tsk!
2010-12-22 14:43:24 +00:00
Dalai Felinto
eeac25c9d0 Complement of commit 33789: Fix for [#25175] bge.logic.mouse.position[1] wrong when using autostart
Porting the fix when Fullscreen flag is on (~ scene.gm->fullscreen)
I still see some issues with that, a difference between width/height. To be addressed later.
2010-12-22 14:21:46 +00:00
Dalai Felinto
c67dac4274 Complement of commit 33789: Fix for [#25175] bge.logic.mouse.position[1] wrong when using autostart
Porting the fix when Fullscreen flag is on (~ scene.gm->fullscreen)
I still see some issues with that, a difference between width/height. To be addressed later.
2010-12-22 14:20:22 +00:00
Janne Karhu
9d756fb761 Fix for [#25339] Rendering Fluid's Float Particals cause crash when utilizng raytracing
* Fluidsim particles hadn't really been working at all for who knows how long, even in viewport!
2010-12-22 09:30:13 +00:00
Campbell Barton
2dc2f50a6e bugfix [#25335] crash with file, console told me to report! svn 33836
view rotate precision was lost over time, make view3d rotate normalize rv3d->viewquat.

note, this no longer crashes blender, just prints.
also commented some RegionView3D struct members.
2010-12-22 02:28:06 +00:00
Janne Karhu
6a79de7698 Fix for [#25325] Timeline doesn't show status of baked psys until frame is advanced
* Timeline didn't listen to file read notifier, so the pointcache frames indicator didn't get updated.
* Also added listens to particle & modifier (cloth, sb & smoke) notifiers as changes that cleared a pointcache weren't shown directly in the timeline either.
* The timeline display was also always one frame behind the actual state, since the notifiers are handled before the actual dynamics are calculated.
** This is now fixed too, by creating the actual drawn data always at drawtime.
2010-12-21 20:18:43 +00:00
Ton Roosendaal
aeba7032e6 Bugfix #25330
3D Window: Snap to cursor or grid, didn't respect the 'restrict location'
options for objects or bones.
2010-12-21 18:55:49 +00:00
Ton Roosendaal
fae8dc5a73 Error/Warning report flipping.
An operator Error throws up a menu, a Warning only a flashy header print.
In mesh editmode the menus for simple failures got very annoying, like
"Already a face" for Fkey on a face.

Proposal is to use warning for contextual failures, like:
- wrong selection
- unsupported combination
- wrong modes

And use errors for cases you really need user attention, for example when
issues are invisble or potentially damaging work.
- Memory failures
- Files not found

List can grow in future :) let's test this for mesh now.
I'll tackle this for other ops later after review.

(Also changed: loopcut disabled when editmode shows deformed result)
2010-12-21 15:10:09 +00:00
Campbell Barton
b0f87a1746 rename addlisttolist() to BLI_movelisttolist()
name was misleading because the list items were removed from the source list.
(no functional changes)
2010-12-21 14:49:34 +00:00
Ton Roosendaal
3d1896bc6d Macro Operators now pass on reports to the Mother Op!
(errors for macros were not shown)
2010-12-21 14:08:58 +00:00
Campbell Barton
7006491451 bugfix [#24469] Cannot add keyframes on custom properties in IDPropertyGroups 2010-12-21 11:40:12 +00:00
Nathan Letwory
c5077e1ede Fix [#24359] Collada: end bone zero size, mysterious extra empty
Reported by Thomas Larsson
Fix by Jeroen Bakker

Fix max length of leaf bone and remove empty.
2010-12-21 10:43:47 +00:00
Nathan Letwory
044e31b89c Fix [#25319] COLLADA import segfaults on maya model
Reported by Michael Williamson
Fixed by Jeroen Bakker

Wrong UV index was being used.
2010-12-21 09:41:02 +00:00
Mitchell Stokes
48cda2e08e Plugging up some memory leaks in the Blenderplayer that I found with valgrind 2010-12-21 06:58:44 +00:00
Nathan Letwory
a8febab31b Workaround for blenderplayer not linking on linux with scons.
Maybe as a next big, uncool project would be: solve bad level calls.
2010-12-21 00:21:42 +00:00
Campbell Barton
a9ba96896a modified fix for commits r33811, 33812.
- SSS Presets were not working on pinned materials.
- added ability for save-presets to define variables to stop them becoming too verbose.
- remove object.active_node_material
2010-12-20 23:26:29 +00:00
Campbell Barton
4530b4984c use uppercase for axis chars, used in BLI_math and other parts of blender. 2010-12-20 23:21:33 +00:00
Sergey Sharybin
9cdf00897a Fix #25315: Curve points keyframe changes made in edit mode get lost
ED_curve_updateAnimPaths now updates fcurves from animation data rather than
from local copy of curves: nurb and point index from keyIndex data gets
updated in this function and for correct handling undo stuff copy of
fcurves is stored in UndoCurve.

Additional changes:
- Revert of rev33640 and more proper fix: do not copy remained
  spline-related rna fcurves after renaming pathes but all the rest
  fcurves woulddbe copied back to animation data
- Refresh graph and dopesheet editor after updating animation data
2010-12-20 19:47:16 +00:00
Ton Roosendaal
9f298c6e47 Bugfix #25308
Border or other selection tools didn't redraw action editor, when
option "only show selected" was set. Was missing area tagging.
2010-12-20 19:09:22 +00:00
Ton Roosendaal
d0193b938d Bugfix #25312
"Make Local" option "Objects and Data" made materials get
lost on save, the tagging was incorrect. Now it makes 
Materials local too.

Implementation note: the code is new (not 2.4) so it misses
some of the hairy goodies we had. It's something for another
time to really make this reliably work.
2010-12-20 18:54:32 +00:00
Ton Roosendaal
8017a9513b Bugfix, own collection:
File Window draw error:
On start Blender in smaller sized window, a scalled down screen
causes the File Window main area to draw too high, clipping off
half of the top line. This case (scroll horizontal only) is not
handled as view2d type.
2010-12-20 18:29:32 +00:00
Sergey Sharybin
28db3053fd Fix for last own commit: missed mode check in addvert_Nurb, so
blender was crashing when user tries to extrude (with e-button)
when nothing was selected.
2010-12-20 17:42:17 +00:00
Ton Roosendaal
fb586da690 Bugfix #25313
Outliner "show active" now also works for elements hidden in
closed items. (Coordinates were not set)
2010-12-20 15:39:00 +00:00
Ton Roosendaal
c0882efc8e Bugfix: new strict code for UI_make_axis_color() caused constraint
lines in Transform to not draw.
2010-12-20 13:57:52 +00:00
Ton Roosendaal
63b9d0bcaa 3D ortho view: the axes lines of grid had wrong color for X.
Thanks Mario Kishalmi for the report :)
2010-12-20 13:32:26 +00:00
Ton Roosendaal
6b1258f5b8 Bugfix #25301
Material Node trees:
SSS wasn't displaying in Nodes.

Implementation notes:
- Currently copying local data for preview render, only copies
  the base material. Node materials are re-used.
- This causes data to be in 2 "main" databases... complex.
- To make it work for preview, I had to add another loop in the
  SSS code that checks the original Main dbase. That's marked
  as warning in code to be fixed up.

Another bug:
- Material properties "SSS presets" copied settings to the
  active material, not to the displayed one. Added RNA call 
  to retrieve this from Objects.

(Next commit will fix preset scripts)
2010-12-20 13:02:33 +00:00
Ton Roosendaal
88b2955564 Bugfix #25307
Node shaders + textures, showing in Texture properties, with option
"show both previews" had bad ID checking.
2010-12-20 11:33:52 +00:00
Ton Roosendaal
97197b54cf Bugfix #25309
Code cleanup to allow switching active output nodes in Compositor
made shader nodes output not set correctly.

Now you can have multiple output nodes in shaders too, and switch
on click-activate.
2010-12-20 11:08:29 +00:00
Janne Karhu
57cc3a5f6d Misleading defaults for smoke flow particle system:
* Show unborn was on by default, so smoke got emitted from all particles regardless of their birth time, not a good default in my opinion.
* What made things worse was that particles weren't shown in viewport, so you didn't even know the particles were considered alive from the very first frame! (Not rendering is a good default, but they should still be visible in viewport!)
2010-12-20 10:23:23 +00:00
Campbell Barton
a6f50e48aa fix [#25313] Outliner View Active only works once icon has been shown in view.
also disable UNDO and REGISTER flags for OUTLINER_OT_show_active() since its just scrolling the view.
2010-12-20 09:51:18 +00:00