Commit Graph

16327 Commits

Author SHA1 Message Date
Andrea Weikert
bbc47e96d3 == imagebrowser ==
- fix: deleting bookmark didn't update .Bfs file (see tracker #7298)
- also fixed memleak, thanks to the guardedalloc :)
2007-09-04 20:27:43 +00:00
Andrea Weikert
72e8dd452c == imagebrowser ==
- nicer drawing of highlight for bookmarks
- fix slight positioning issue of bookmark highlight
- resetting bookmark highlight when mouse outside bookmark area
- cleaned up define that isn't needed anymore
2007-09-04 19:07:51 +00:00
Juho Vepsalainen
5b55a89bac Fix for bug [#7135] Compositor crash when adding a time node:
This commit replaces the old function used to draw time node
user interface with new one. This should fix the issue. The
function can later be reused time node for material node 
system.
2007-09-04 17:42:33 +00:00
Stephen Swaney
e20e3e94ff more warning cleanup:
unused variables
undefined variables
discarded qualifiers
2007-09-04 15:53:22 +00:00
Campbell Barton
ee740fc601 Made ~ view all IPO's (similar to view all layers in the 3d view) 2007-09-04 07:26:25 +00:00
Stephen Swaney
3326d493a0 more warning fixes.
sprinkle a few 'const char*'s around to remove warnings 
about discarding qualifiers in imbuf code.
2007-09-03 19:12:36 +00:00
Stephen Swaney
1b35c1c1ec fix warning: no newline at end of file 2007-09-03 17:28:50 +00:00
Ken Hughes
072c926aab Update Python API to change to curve 'extrude' limit from 5 to 100. 2007-09-03 16:56:09 +00:00
Stephen Swaney
cd99c7beb9 another warning: no newline at end of file 2007-09-03 16:00:12 +00:00
Stephen Swaney
ca087fabbe fix No newline at end of file 2007-09-03 14:23:05 +00:00
Matt Ebb
25438ddd91 * Raised hardcoded limit for curve 'extrude' from 5 to 100. 2007-09-03 06:27:51 +00:00
Campbell Barton
ca59cd68d3 shell script that works with epydoc 3.0 2007-09-03 00:03:29 +00:00
Campbell Barton
04a2eb2e4e adding 2 new functions
Mat3ToScalef and Mat4ToScalef

These return a floating point scale value which is the average of the 3 axies.
Use this to adjust curve radius when applying scale/rot
2007-09-02 22:53:59 +00:00
Ton Roosendaal
30f1deccd0 Bugfix #7020
Buttons window, Object context, Anim Settings panel, "draw key"
did not work. Bug since year zero...
2007-09-02 17:47:03 +00:00
Andrea Weikert
600c4c7c19 == imagebrowser ==
fix for missing null pointer check in IMB_thumb_create.
found by Diego Borghetti (bdiego) - thanks!
2007-09-02 17:41:25 +00:00
Andrea Weikert
356ab94373 == imagebrowser ==
Initial commit of imagebrowser in trunk.
BIG COMMIT!

Main changes:
* completely reworked imasel space
* creation and storage of the preview images for materials, textures, world and lamp
* thumbnails of images and movie files when browsing in the file system
* loading previews from external .blend when linking or appending
* thumbnail caching according to the Thumbnail Managing Standard: http://jens.triq.net/thumbnail-spec/
* for now just kept imasel access mostly as old imgbrowser (CTRL+F4, CTRL+F1) a bit hidden still.
* filtering of file types (images, movies, .blend, py,...)
* preliminary managing of bookmarks ('B' button to add, XKEY while bookmark active to delete)

More detailed info which will be updated here: http://wiki.blender.org/index.php/User:Elubie/PreviewImageBrowser

Places that need special review (and probably fixes):
* BLO_blendhandle_get_previews in readblenentry
* readfile.c: do_version and refactorings of do_library_append
* UI integration

TODO and known issues still:
* Accented characters do not display correctly with international fonts
* Crash was reported when browsing in directory with movie files
* Bookmark management still needs some UI work (second scrollbar?), feedback here is welcome!

Credits:
Samir Bharadwaj (samirbharadwaj@yahoo.com) for the icon images.

Many thanks to everyone who gave feedback and helped so far!
2007-09-02 17:25:03 +00:00
Ton Roosendaal
22c23fb04f Bugfix #7125
The conversion from float to char (byte) was not correct. It should include
the possibility for colors like 0.999999 to become 255 still. The correct
multiplication factor I don't know though... and this should become a system
wide definition!
2007-09-02 16:34:02 +00:00
Ton Roosendaal
0caf8e477f Bugfix #7072
Outliner "make local" was not coded properly. Removed it for now...
Proper implementation would check all other used pointers, to indicate
the data is now local, and ID pointers should be of type "lib extern"
2007-09-02 11:55:56 +00:00
Campbell Barton
5d39b806f9 apply envelope to weigh group didnt take armature scale into account 2007-09-01 20:27:50 +00:00
Joshua Leung
778b690a61 Bugfix:
Snap Cursor to Selected in EditMode for bone was still not working correctly. A missing check made it impossible to snap to joints in some situations.
2007-09-01 04:24:16 +00:00
Campbell Barton
50ea568179 Bugfix for [#7018] Hiding, unhiding a spot lamp and then setting it to buf shadow segfaults
buttons were not redrawing so it was possible to use them without an active object, this crashed blender.
2007-08-31 23:23:38 +00:00
Campbell Barton
32fddfbe06 my commit 11122 broke scriptlinks. was returning before re-enabling scriptlinks.
Bug [#6978] Scene script link doesn't work for Redraw event

made a script to automate building a range of revisions.
http://wiki.blender.org/index.php/User:Ideasman42#SVN_TimeWarp_Script
2007-08-31 21:54:56 +00:00
Campbell Barton
8ec207efcb fix from stable - was missing a NULL check 2007-08-31 18:21:12 +00:00
Kent Mein
6cd6bf7d80 Updated the Makefiles removing some of the gcc specific stuff...
Basically I moved  -funsigned-char -fno-strict-aliasing
from individual Makefiles to nan_compile.mk defines for CFLAGS and CCFLAGS

Kent
2007-08-31 16:16:33 +00:00
Juho Vepsalainen
c1e9ad9c80 Hue Saturation Value node - port to material node system
This commit ports Hue Saturation Value node to the material node system.
Unlike in composite version, each value is an input. Composite node version
will be updated later to use the same scheme.
2007-08-31 07:42:06 +00:00
Martin Poirier
800c6db46f Some cleanup of the ndof functions:
Moving filterNDOFvalues and getndof to editscreen.c/BIF_mywindow.h (this might not be the best spot but it matches table/mouse functions)
	Adding missing function definition in include files and fix declaration mixup (void functions used as int, short pointer used as float pointer)

New NDofInput model for transform (reusable externally in the future):
	Handles ndof events, accumulates values and enables remapping and rescaling values to fit any axis combinaison into a float[3] (this could be extended in the future, also, it doesn't support out of order axis right now).
	
	Compatible with "gears" (Ctrl key)

	New transform context for pure NDof input transform (entered when using Transform mode on the device).
		In this mode, transform "transactions" are automatically confirmed when the device returns to its rest position
		Rotation on Z triggers a rotation (axis is perpendicular to the screen as usual, constraints works as expected)
		Rotation on X/Y triggers trackball rotation
		Translation on X/Y/Z triggers translation (doesn't support constraints correctly).

	The device can also be used during a "normal" transform operation. In this case, there is no auto confirm but button 1 (right) can be used to confirm while button 2 is used to clear the NDof input (back to mouse input).

	NDof support was added to translation, rotation and trackball (as previously mentionned) but also to Tilt (same as rotation) and Push/Pull (move device along Z axis).

This is a bit preliminary work, so everyone should feel free to comment and send suggestions.

NOTE: this commit also merges revision 11523 from the trunk
2007-08-30 22:02:32 +00:00
Andrea Weikert
ca5c21e180 * updated MSVC projectfiles with SHD_sepcombRGB.c shader nodes.vcproj
* fix for possible double free.
2007-08-30 20:32:43 +00:00
Matt Ebb
6be4742653 * Slight change to lamp energy calculation - make lamps invisible
for shading if their 'visibility factor' is below 0.001. This
gives no perceptible visual difference in my tests, but can 
significantly speed up shading when using lots of omni lights 
with quad falloff over a large area. Since quad lamps never
actually fall off to 0, previously every lamp would be considered 
for shading each pixel, even if such lamps had a tiny falloff 
distance, and were miles away.
2007-08-30 01:47:14 +00:00
Matt Ebb
1b22a628f2 *Added 'Zoom within border (Shift B)' to the 3d view menus.
Can people *please* not commit tools with only hotkeys to access them?
2007-08-29 05:01:20 +00:00
Campbell Barton
1e3b8dc5d7 hash update from stable 2007-08-29 03:09:22 +00:00
Joshua Leung
19f15f6ab3 Patch #7081:
Submitted by: David Bryant

This patch adds 2 new drawtypes for empties (circle draws a 2d-circle on the x-z plane, and cube draws a regular cube), and allows empties to be used as custom bone shapes.

I've modified the patch a bit to fix up weird formatting, optimising the circle-drawing method, but the cube-drawing function has been maintained. In the process, I also moved the mesh-specific code in draw_object_instance to draw_object_mesh_instance so that empties can be used by whatever else might use draw_object_instance too.
2007-08-28 11:29:54 +00:00
Kent Mein
caa804e2b6 This is patch #7056
Submitted by Davide Vercelli (unclezeiv)

removes the restriction of using the screw tool only in front view.

Kent
2007-08-28 11:11:07 +00:00
Kent Mein
4e2143f639 This commit fixes up a bunch of svn properties to hopefully make things a little nicer for everyone.
Patch provied by gsrb3d

bug tracker #7061

Kent
2007-08-28 10:07:08 +00:00
Brecht Van Lommel
8c0f96cde4 Another fix for the editmode textured draw commit, subsurf vertex color
drawing didn't work.
2007-08-28 09:30:46 +00:00
Brecht Van Lommel
c5fc334996 Fix for editmode textured draw commit. 2007-08-28 08:59:33 +00:00
Brecht Van Lommel
f118bebc36 Textured drawing in Edit Mode
=============================

- In textured drawmode it now draws the texture, with solid mode lighting.
- UVs and vertex colors for subsurf are not computed incremental yet, so
  editing in textured drawmode then may not be as fast as the other modes.

Implementation Notes:
- Added textured drawing functions to the editmesh and subsurf derivedmeshes.
- Removed some unused, legacy subsurf code that directly used Mesh.
- Restructured texture drawing a bit to make it more clear and allow for
  editmode drawing.

(Peach feature request)
2007-08-28 08:53:36 +00:00
Joshua Leung
2252b636a3 Bugfix: Constraint Geometry Targets didn't work yet when the Target Mesh was in EditMode
It turns out that a DerivedMesh needs to be generated explicitly if one needs to be used when the Mesh is in EditMode.
2007-08-28 08:43:38 +00:00
Campbell Barton
7b0098bd04 getting the mesh for all curves/surfs/text raised an error every time because it was checking the wrong object was converted to a mesh. might be own fault. 2007-08-27 20:05:05 +00:00
Campbell Barton
ca843fd2f8 armature weakref evilness again, using editmode in python is not the best.
replacing PyWeakref_NewProxy with PyWeakref_NewRef fixes this problem.

list(bpy.data.armatures) # would mess up weakrefs
[arm for arm in bpy.data.armatures] # didnt.
2007-08-27 16:09:02 +00:00
Diego Borghetti
93b5553c9c BugFix #7115
The "Strands" settings is a BlockBut and never return B_MATPRV like the others buttons, because of this,
never call BIF_preview_changed.

It's posible two fix for this:
	1) make all the buttons into the "Strands" panel return B_MATPRV (this modify the "work mode" of the panel)
	2) Add a call to BIF_preview_changed to the end of strands_menu function (as do_matbuts).

The problem with the first options, is that the panel "close" when you press/release some of the buttons, so
to preserve the current "work mode" of the panel, i choose the second option.
2007-08-27 03:20:16 +00:00
Campbell Barton
e7a2a175df getting the armature twice would cause a weakref error and crash after 2-4 runs..
data = arm_ob.data
bones = arm_ob.data.bones.values()

Fixed by returning existing armatures if they exist in the weakref list. tested with FBX and BVH support.
2007-08-25 19:05:18 +00:00
Stephen Swaney
45262987fc correct tooltip: startingspeed => starting speed
Noticed by mjordan.
2007-08-24 18:12:07 +00:00
Joshua Leung
6ab498defc Several Minor Fixes:
* Grouped Up/Down buttons in constraint panel headers, and fixed their tooltips
* Removed unused variable from action editor code
* Minor formatting in constraint.c
2007-08-23 09:42:21 +00:00
Joshua Leung
866218eb15 Fix for a compiler warning caused by one of my commits yesterday. 2007-08-23 09:37:58 +00:00
Joshua Leung
6cd036ed44 Bugfix #7091: "blender crashes when i put a constraint between two armatures"
This crash only occurred when the RigidBody constraint was used, and the toObject field was set to an armature, as the RigidBody constraint doesn't use subtargets.
2007-08-23 06:25:45 +00:00
Kent Mein
3e7fc6145f Added a couple of missing stubs to clean up some warnings...
Kent
2007-08-22 18:34:47 +00:00
Joshua Leung
f237a466c1 Minor Code Cleanup (ShapeKeys):
Added a new API method for ShapeKeys, which is useful for finding a certain KeyBlock from a Key.
2007-08-22 10:07:42 +00:00
Joshua Leung
59016f9f5d Bugfix #7083:
The menu entries for changing Interpolation and Extrapolation modes in the Action Editor weren't working properly (at all).
2007-08-22 08:52:57 +00:00
Juho Vepsalainen
941ee4139e Autocompletion to Geometry input node:
This commit adds autocompletion and "red alert" feature to text input
fields (UV and VCol) of the Geometry material input node. The functionality
is similar to one found in UV part of the "Map Input" panel found in Material
buttons context of the Buttons Window.
2007-08-22 06:26:37 +00:00
Campbell Barton
567e634253 obj export had the overwrite confirmation commented out from testing, UIBlock needed to clear the events so tooltips show. 2007-08-21 19:37:03 +00:00