Commit Graph

11211 Commits

Author SHA1 Message Date
Nicholas Bishop
8c8cdebffa Committed patch #7838, Fix for window header redraw in sculpt mode from aurel.
Fixes flickering in the 3D view header after using the interactive brush size tool.
2007-12-07 21:45:34 +00:00
Campbell Barton
dc9909a33e EnV requests, copy and paste for colorbands, world ambient colorpicker 2007-12-07 19:48:53 +00:00
Martin Poirier
7e0d34d537 [#7140] Scrollbar not stopping ok on the bottom of the text editor window
Fixed by patch #7849 by Jetze van Beijma
2007-12-07 14:58:36 +00:00
Brecht Van Lommel
e60580935b Accidentaly left in a line of debug code, which broke deform modifiers
after e.g. subsurf.
2007-12-07 12:05:12 +00:00
Campbell Barton
f4e2005933 UV texture blending was being used when materials were disabled. 2007-12-07 11:56:51 +00:00
Joshua Leung
be7192c0bd == NLA - Scale Related Fixes ==
* Old files now get initialised with the correct scale. The wrong calculation was being used

* Added a new tool to Alt-S menu: "Apply Scale"
This tool causes all the keyframes in the active strip to be moved to their NLA-scaled times, the scale to be set to 1.0, and the frame ranges recalculated accordingly (to remove any nasty weird errors)

* Scale field now draws red when the action-range is < 1, and the tooltip in this case instructs the user how to fix this (by using "Apply Scale").
2007-12-07 10:50:02 +00:00
Campbell Barton
9723e3ef39 miscellaneous edits from python development branch merged back into trunk 2007-12-07 09:51:02 +00:00
Joshua Leung
ab02e9140e == NLA - Scale Setting for Strips ==
NLA-Strips now have a new setting: Scale. 

It determines how much the action-range is scaled for each repeat, instead of the scaling being implicitly determined based on repeats + strip-length. 

One of the instant benefits of this, is that when increasing the number of repeats, the strip length increases by the right amount. Thus, increasing the number of repeats retains a constant speed.

Hopefully we can prevent weirdly scaled actions this way. (i.e.  0.00001 frames long action * 10000 or so)

Todo:
- Transform code needs to be able to set the scale setting (it doesn't yet)
- Add a new option to "apply scaling", to fix up problems with old files that have really bad scaling. Situations when this is needed could get indicated in the interface too... (red background for "Scale" field?)
2007-12-07 04:24:02 +00:00
Kent Mein
90715580b9 This is patch: [#7129] Solaris build is linking with c instead of c++ compiler
I talked to Jesterking and he may switch this to a more global
solution later.  I figured in the meantime its ok to commit this
and consider the issue resolved.

Kent
2007-12-06 21:41:22 +00:00
Ken Hughes
3bbf0736b2 Python API
----------

Bugfix #7877: fix for lamp.setMode() and lamp.setType(): need to build
tuples instead of just int or float objects.
2007-12-06 20:15:03 +00:00
Brecht Van Lommel
37d11907d0 Bugfix for IK locked axes with an initial rotation, gave wrong
starting angle in some cases, but wasn't always noticeable due
to the IK solver changing it anyway.

Bugfix for hidden bones in pose mode still being active, and
preventing other bones from becoming active.
2007-12-06 19:44:17 +00:00
Brecht Van Lommel
51322964f4 Particles
=========

- Normalize strand coordinates over the length of the strand, not
  cut off when with e.g. length texture control.
- Weight paint and particle mode x-mirror now works with deformation
  and shape keys active.
- X-ray is now disabled in particle mode, messed up depth tests.
2007-12-06 17:43:47 +00:00
Brecht Van Lommel
ff52c8f2d6 Bugfix: the sticky and use rot buttons for the floor constraint were
not working anymore after constraint refactor.
2007-12-06 14:22:22 +00:00
Brecht Van Lommel
7f1e03296c Bugfix: rotation difference ipo drivers could give sudden jump. This
was actually due to a numerical issue in the matrix to quaternion
conversion code (which was from siggraph '85), now uses an improved
version. I hope nothing depends on the previous behavior.. though
it should only affect corner cases.
2007-12-06 12:46:10 +00:00
Joshua Leung
1e45289f91 Constraints Bugfix:
IK-constraint "flush_targets" function was causing segfaults on debug builds from certain MSVC compilers. 

The cause of this, is that ct is freed in the SINGLETARGET_FLUSH_TARS macro already, but ct is accessed in the following line to get the next target (ct= ct->next). Caused by brecht's commit for the pole-target stuff for IK-constraint.

Now the SINGLETARGET_FLUSH_TARS macro, and the SINGLETARGETNS_FLUSH_TARS macro will correctly advance the location that ct points to.
2007-12-06 10:20:03 +00:00
Joshua Leung
ac6efff0d7 == Action Editor - Snap Current-Frame Marker to Keys ==
This little feature snaps the current frame marker to the average frame of all the selected keyframes. Use the hotkey Ctrl-Shift-S to use it.
2007-12-06 09:41:46 +00:00
Joshua Leung
df1db20737 == LimitLoc Transform - Tweaks ==
* Made 'cob' be a stack var instead of allocating memory (as suggested by Martin)
* Adjusted the position of "Trans" button in panel, and changed its name/tooltip to better describe its function

* 'Active' constraint now draws brighter than other constraints... this is still not clear enough though.
2007-12-06 02:57:47 +00:00
Brecht Van Lommel
26b8892c9c Bugfix for mysteriously disappearing left eyeball. Bounding boxes
used for clipping were being stored in the mesh, but modifiers
can result in two objects with the same mesh having a different
bounding box. Solution is to store bounding box in the object.
2007-12-05 21:50:23 +00:00
Kent Mein
b0c01a414b Fixed up NOPLUGINS and NOSTRIP so they are hints to make release instead of
hardcoded.  Also removed ""'s from around the defines so they were more like
all of the others.

Thanks to Tanner Jotblad for pointing this out...

Kent
2007-12-05 21:46:34 +00:00
Campbell Barton
5d0c829194 [#7805] VSE: "snap to current frame" doesn't work for startframe/endframe
Added this functionality.
2007-12-05 20:54:26 +00:00
Campbell Barton
e756b1cc7d - fix for [#7327] Problem/issue with .PLY export,
editmode was not exited, and vertex normals would not write at all! (probably own error)

- Edited tooltip for texture DVar (was some user confusion in the studio as to its purpose)

- Set render border is disabled when it has no area - so drawing a box outside the camera disables .
2007-12-05 20:21:25 +00:00
Kent Mein
7b2e348d4f This is a modified version of this patch:
[#7660] Solaris 10 x86 support (Makefiles)

Hopefully it will not mess up anything for anyone else.  I removed
some hardcoded static libs and made NAN_*_LIB definitions so they could be 
overridden, to allow greater flexability.

Let me know if there are any problems/questions.

Kent
2007-12-05 16:58:52 +00:00
Brecht Van Lommel
b3c1e458b4 Particles
=========

- Added texture control for child particle roughness.
- Fix some use of uninitialized variables in particle texture code.
2007-12-05 15:48:49 +00:00
Brecht Van Lommel
29d87d64ca Particles
=========

- Texture orco coordinates for particles are now actual orcos instead
  of just the vertex positions, which means they are the same under
  deformations and the same as the ones on the mesh.
- Particle distribution now uses these orcos to get consistent
  distributions independent of deformation.
- This required changing the way orco's are computed for meshes. Now
  instead of generating an orco derivedmesh separately, the derivedmesh
  is generated alongside the regular one and stored in an orco custom
  data layer.
2007-12-05 12:40:54 +00:00
Campbell Barton
2422b1e401 fix for 2 problems with pose relax,
* Auto key wasnt working, it made the bone not move at all (not sure why used same code as snap to), now check G_RECORDKEYS and add keys manually.
* was ignoring keys that were 1.0 behind the current key. made the limit 0.5, fixes this.
2007-12-05 12:04:14 +00:00
Joshua Leung
5c13e82140 Two transform tweaks:
* [Peach Request] AutoIK now respects axis locking (rotation locks).
- Temporary DOF-Locks are turned on for those bones that are part of an AutoIK chain while transforming. These locks get cleared after transforming.
- This works for all bones except the root bone of the chain, which doesn't seem to be able to be locked.

* Limit Location constraint can now optionally affect Translations too (i.e. NKEY panel values won't change). 
- LimitRot,LimitScale support (for their respective transforms) will be done at a later date
- This only works if the constraint is using World/Local space (the other spaces are not supported yet).
- I've added a temporary button in the LimitLoc panel to enable this option (it is disabled by default). This button will be properly assigned a place in that panel sometime.
2007-12-05 11:19:36 +00:00
Campbell Barton
8493fa986b dont draw face dots when solidtex is enabled - added a macro to check this.
relax pose was crashing - missing a check.
2007-12-05 10:52:14 +00:00
Roland Hess
aa39d56692 Little workflow goody for animators. Adds Alt-RMB select to Action Editor. Alt-RMB in the key area selects all keys on that side of the current frame line. Shift-Alt-RMB builds selection. Commands are also in the headers. 2007-12-05 00:03:39 +00:00
Matt Ebb
f90e4cae73 * Menu entry for relax pose 2007-12-04 23:50:51 +00:00
Campbell Barton
aa2389c539 peach request, pose relax - similar to mesh smooth, moves selected pose bones to closer match keyframes on either side. 2007-12-04 21:12:23 +00:00
Ton Roosendaal
25ea528a29 Bugfix: de-premul for image texture didn't happen for non-osa case. 2007-12-04 19:06:00 +00:00
Ton Roosendaal
12a6008d2f Blender Play feature:
- Hold shift prints filename/frame nr + speed
- SHIFT+NumPad-4: playback speed 24 frs/sec
2007-12-04 18:34:28 +00:00
Brecht Van Lommel
d3bd96ba6c Strand render bugfixes:
- Fix compile error.
- Some changes to bucketing.
- Tweak acceleration button increase size.
2007-12-04 17:53:03 +00:00
Brecht Van Lommel
09b9a1e3f7 Addition to previous strand render bugfix. 2007-12-04 17:19:30 +00:00
Brecht Van Lommel
c50dfa4379 Strand render bugfixes:
- Accidentally made minimum blender unit strand size bigger again.
- Make layer option for lamps work.
2007-12-04 16:55:01 +00:00
Brecht Van Lommel
1e1ee08edb Fix for bug #7859: texture render baking crash. 2007-12-04 15:57:20 +00:00
Brecht Van Lommel
43c7cb994e SSS now uses oversampling for textures in the preprocessing pass,
to fix noisy renders, to solve patch #7865.
2007-12-04 15:11:33 +00:00
Brecht Van Lommel
114e3f35c3 Particles
=========

- Like sculptmode, a brush can now be selected from a menu with
  Ctrl+Tab in particle mode.
2007-12-04 14:21:58 +00:00
Brecht Van Lommel
32a8b4f8e6 Particles
=========

- Fix crash in particle transform with the particle system not editable.
- Particle child distribution and caching is now multithreaded.
- Child particles now have a separate Render Amount next to the existing
  Amount. The render amount particles are now only distributed and cached
  at render time, which should make editing with child particles faster.

- Two new options for diffuse strand shading:
	- Surface Diffuse: computes the strand normal taking the normal at
	  the surface into account.
	- Blending Distance: the distance in Blender units over which to
	  blend in the normal at the surface.
- Special strand rendering for more memory efficient and faster hair and
  grass. This is a work in progress, and has a number of known issues,
  don't report bugs to me for this feature yet.

More info:
http://www.blender.org/development/current-projects/changes-since-244/particles/
2007-12-04 13:57:28 +00:00
Brecht Van Lommel
ebfedd20b2 Mesh Deform Modifier
====================

Bugfix for mdef + groups. The mdef modifier treated the cage object as
a sort of parent, which meant that transforming the cage object also
transformed the mesh. However, this behaviour is different from e.g.
armatures, where transforming the armature object has no effect for
the modifier, but instead this transform is taken into account by the
fact that the armature is usually the parent of the mesh.

For groups and duplis, this basically lead to the parent transform
being applied twice. So, now transforming the cage object will have no
effect, except if you make the cage object the parent of the object.
2007-12-04 12:39:27 +00:00
Joshua Leung
cfa83dbb9b == Bone Paths - Auto-Recalc Improvements ==
Added a new function which specially caters for auto-recalculation of paths after updates (such as keyframing). 

Currently, all that differs between this and pose_calculate_path, is that it only recalculates for bones with paths. Also, it only updates what it needs to (minimum frame range affected).

Warning: WIP commit (hopefully it compiles ok)
2007-12-04 11:34:26 +00:00
Joshua Leung
6d3a5625fd Bugfix:
* Bone Paths calculation should now work on unsaved files. This long standing bug has been hacked around by manually forcing OB_RECALC to be set for the active object (depsgraph should really do this, but it doesn't!)

* Added waitcursor for calculating paths (useful on longer paths). I was going to add a progressbar as well, but that decreased performance overall.
2007-12-04 08:53:41 +00:00
Ken Hughes
3e544d04b5 Tools
-----
Make FFMPEG image save use PNG format instead of JPEG.
2007-12-04 05:53:32 +00:00
Ken Hughes
62e28f52da Tools
-----
Bugfix #7831: fix image filename extensions on saved files.  Make FFMPEG save JPEG images by default, allow JPEG images to have either ".jpg" or ".jpeg" extension.
2007-12-03 23:37:33 +00:00
Campbell Barton
89205964b3 curve proportional edit mode wasn't working with draw handles disabled (own error) 2007-12-03 23:26:45 +00:00
Campbell Barton
a2d6623689 bugfix, curve radius would display incorrectly when there were single point's before a curve. now allow the bevel list to have zero point BevList's to keep in sync with curve->nurb as was expected in a few places. 2007-12-03 22:42:48 +00:00
Martin Poirier
aeaeba2b2c Select all generated bones by default 2007-12-03 20:10:48 +00:00
Campbell Barton
ccc82beb64 import all math funcs (sin/cos/tan/e... etc) by default into buttons and drivers 2007-12-03 16:43:58 +00:00
Ton Roosendaal
a8c8aee7c6 Group instancing usablitity issue: Hotkey SHIFT+O to set subsurf on/off
should not work if object had not a subsurf modifier before.
2007-12-03 16:21:16 +00:00
Ton Roosendaal
0412d62309 Blending mode "Overlay" was not coded yet for material blending. 2007-12-03 16:06:34 +00:00