Commit Graph

19350 Commits

Author SHA1 Message Date
Matt Ebb
bf6f23ff5f * Added notifiers/redraws for brush edits in 3d view and image editor (so using radial control updates tool properties)
* Changed the non-projection paint code to use the brush falloff curve, rather than a predefined falloff. This makes non-projection painting in the 3d view, and image editor painting much more consistent with other brush usage.
2009-09-18 03:11:17 +00:00
Campbell Barton
a393a9c6f0 same as r23322 in 2.4x
--- 2.4x log
use functions to detect stylus and eraser from the wine project, supposed to work with non-wacom tablets too (searches for wizardpen & acecad as well as 'stylus').
2.4x did an exact check on the name, 2.5 does a case insensitive search on the type.

This does a case insensitive check on both the name and type.

close the devices on exit too.
2009-09-18 02:38:38 +00:00
Matt Ebb
b75d2c56c8 * Made image editor paint use predefined left/right mouse buttons rather than action/select, consistent with 3d view painting (and better for tablets!)
* Fixed a small bug in project paint tool ui
2009-09-18 02:19:27 +00:00
Janne Karhu
08e2da590f Particles cleanup, optimizations and some small new stuff.
New stuff
- Bending springs for hair dynamics.

Code cleanup & optimization
- Disabled reactor particles temporarily for cleanup, it's a clumsy system that will be replaced with something better.
- Removed child seams, something better will come here too :)
- Normal particle drawing data is now saved between redraws if the particles don't move between redraws.
	* For example rotating the 3d view is now realtime even with 1M particles.
- Many random values for particles now come from a lookup table making things much faster.
- Most accessed small point cache functions are now much faster as macros.
- Lot's of general code cleanup.
- Nothing big should have changed so if something doesn't work like it used to it's probably just a typo somewhere :)
2009-09-17 22:00:49 +00:00
Brecht Van Lommel
69e919530e Keymaps now have a poll() function, rather than adding/removing
their handlers based on notifiers, which is simpler and more
reliable.

This fixes for example editmode or uv edit keymaps not working
when creating a new 3dview or image space.
2009-09-17 21:36:02 +00:00
Martin Poirier
b572ae2a8b netrender:
Disable windows' blocking crash reports in child process. (windows only)
Get server port as well as ip address from master broadcast (broadcast is on a fixed port).
2009-09-17 18:40:37 +00:00
William Reynish
bf34328634 Forgot to delete unused code. 2009-09-17 17:44:54 +00:00
William Reynish
a133907c92 -Shuffled some user prefs around to make better use of the available space in Preferences.
-Temporarily disabled the Themes tab until we figure out how to manage themes properly.
2009-09-17 17:42:08 +00:00
Thomas Dinges
a08b16436d 2.5: Adding a crop node caused crash, wrong layout deceleration was used. 2009-09-17 17:31:50 +00:00
William Reynish
613a034b45 -Added Loop Cut to toolbar
-Adjusted some UV Editor panels slightly
-Made a few nodes clearer. The Crop node was especially confusing.
2009-09-17 16:47:04 +00:00
Thomas Dinges
91e5ac872e Wrapped some more Nodes:
* Composite: Flip, Crop, Map UV, Lens Distortion.
2009-09-17 15:06:03 +00:00
Brecht Van Lommel
fbbda4c06e Warning fixes for blenkernel and editors.
Note sure what to do with this one, and personally think
we should avoid using macros for this kind of thing:

V_GROW(edges);
source/blender/editors/mesh/loopcut.c:232: warning: value computed is not used
2009-09-17 14:46:22 +00:00
Brecht Van Lommel
09652d8c05 Fix #19371: vertex group dropdown crash, own fault in commit yesterday. 2009-09-17 14:37:08 +00:00
Brecht Van Lommel
7783c286b9 UI: fix display of shape key list to show with no items,
list template should also accept None.
2009-09-17 14:35:08 +00:00
Benoit Bolsee
a911fd88af Update MSVC project files. 2009-09-17 11:17:49 +00:00
Joshua Leung
68f4465cdc 2.5 - Animation Utility Function
Added a utility function to check which transforms for an object or bone are animated, returning these as bitflags and/or optionally retrieving the relevant F-Curves too. Beware that this method may not be working correctly yet, but it shouldn't hurt anyone in the meantime :)

Also, split RNA-path building function up into a version which only creates the path up to the given struct, with the other parts being added later.
2009-09-17 10:14:56 +00:00
Campbell Barton
1934ee422a rna function api was overwriting useful errors with keyword errors.
fix some missing checks in the python interface.
2009-09-17 00:14:47 +00:00
Matt Ebb
4a15b40c37 * fix compilation on osx 2009-09-16 22:27:27 +00:00
Remigiusz Fiedler
591a30dab0 bugfix for LineIntersectLine()
- was imperfect calculation for points marking shortest distance for non-crossing lines in 3d
2009-09-16 22:12:23 +00:00
Thomas Dinges
90d8088e53 2.5:
Test Commit, converted Filter Composite Node to use layout engine. :)
Will do other Nodes in the next few days.
2009-09-16 20:07:05 +00:00
William Reynish
f26ac206c9 *Changed image field order property to enum, making it consistent with the corresponding render option
*Tiny edit to image panel.
2009-09-16 19:58:01 +00:00
Martin Poirier
6e4d4a8a12 fix bugs with file transfer 2009-09-16 19:47:58 +00:00
Brecht Van Lommel
b6c6610630 UI
* Removed some legacy code which is not needed anymore now.
* Move some test_*poin_but functions to logic space code,
  since that's the only place using it still.
* uiIconFromID now uses RNA info to lookup the icon, to avoid
  code duplication, and means it works for more ID types.
2009-09-16 19:36:17 +00:00
William Reynish
21e2f27532 Tiny fix for mistake in toolbar. 2009-09-16 19:27:23 +00:00
Brecht Van Lommel
f8abfce7ce Image Panels
* The image panels in the image editor and texture buttons
  should be more complete now, with working new/open,
  refreshes, and using the layout engine.
* Paint panels in image editor are now consistent with the
  ones in the 3d view toolbar.
* Curves panel also uses layout engine, and doesn't look
  squashed anymore.
2009-09-16 19:27:08 +00:00
Brecht Van Lommel
5129b08064 UI
* Node buttons can now use the layout engine. a few simple
  ones are converted. We'll keep this code in C for now,
  python wouldn't help much here.
* For node buttons not using the layout engine, manually
  computing the button height is not longer needed.
* Node inputs are still not RNA wrapped, would be good to
  have these available as well for keying, but makesrna does
  not have access to the bNodeTypes.
2009-09-16 18:59:13 +00:00
Brecht Van Lommel
3a6bf17b3e UI
* Fix problem with curve mapping / color ramps not updating
  things like previews propertly. Now it uses the RNA update
  of the pointer from the material/texture/.. so each of those
  can define their own update, but still share the RNA struct.
* Code for these templates is now in interface_templates.c
* Fix exception for "axis" property, now it always shows normal
  widget with the PROP_DIRECTION subtype.
* Remove context from uiBlockLayoutResolve, no longer needed.
2009-09-16 18:47:42 +00:00
Brecht Van Lommel
de59f34be0 UI: action editor header now also uses template for browsing action
datablocks, was last place using deprecated uiDefIDPoinButs.
2009-09-16 18:32:10 +00:00
Thomas Dinges
6b5ce9366d Fixed Resolution and Aspect Ratio Notifier for camera mode in 3D View.
NC_OBJECT, won't do it alone, added ND_DRAW.
2009-09-16 18:32:03 +00:00
Thomas Dinges
e0d36b73a1 #19317:
Some more missing notifiers for the "2 open properties windows" scenario. Scene Buttons should be fine now.
2009-09-16 18:22:53 +00:00
Brecht Van Lommel
4596f0ee5e File Browser
* Fix warning for non-existing "relative_paths" property.
* Fix problem where the image browser would keep trying to
  load images it failed opening.
2009-09-16 18:07:49 +00:00
Brecht Van Lommel
6156248051 UI: fix region edges cursor to show the right direction,
was always vertical now.
2009-09-16 18:05:28 +00:00
Brecht Van Lommel
feff78170d RNA
* PROP_NEVER_NULL is now a flag instead of a subtype.
* It works for function parameters too now, so setting
  this flag can help avoid NULL checks in the function.
* Renamed LocalLamp to PointLamp, making it consistent
  with the UI name.
* Set icons for the different lamp struct types.
2009-09-16 18:04:01 +00:00
Thomas Dinges
6b5ba70059 2.5 Ghost Compile Fix for windows. Patch by b333rt. Thanks! 2009-09-16 17:13:03 +00:00
Campbell Barton
7c5695c801 - bpy.data.sounds was a collection of ID's rather then Sounds
- last commit, missed include for rna_object_api.c & bad args to find_basis_mball
- use enum for GHOST tablet type None/Stylus/Eraser, had duplicate definition for these in C. Only tested X11, may need to cast to an int for other OS's.
2009-09-16 15:55:00 +00:00
Martin Poirier
b5b0a62c97 netrender: default temp path on windows to something more useful 2009-09-16 15:00:35 +00:00
Brecht Van Lommel
9fea9d065d 2.5: fix bug in Levels node, giving NULL pointer free warnings. 2009-09-16 14:45:10 +00:00
Martin Poirier
42af96ed42 use platform.uname instead of os.uname (suggested by Carsten on the ml), it's more portable 2009-09-16 14:02:01 +00:00
Campbell Barton
103e11359d - rna/python api object.create_render_mesh(...) support for getting a mesh from metaballs and curves (bevel, surface, text etc).
- povray converts curves to meshes on export, (metaballs don't need meshing).
- use 'extend' bool rather then 'seltype' enum for object_select operators for consistency.
2009-09-16 10:09:57 +00:00
Joseph Eagar
e03b8b7be7 loopcut tool. hold down ctrl-r, then leftclick. due to current limitations on operator design, there isn't any built-in edge sliding to this tool. 2009-09-16 09:55:06 +00:00
Campbell Barton
cc100eadc5 Operator cheat sheet (from the help menu)
writes all operators (including PyOperators) and their default values into a textblock.
Useful for an overview and checking consistancy.

eg. http://www.pasteall.org/7918/python

added rna functions text.clear() and text.write(str)
2009-09-16 06:02:56 +00:00
Matt Ebb
8df1bb99f9 * enable high res smoke rendering in voxeldata texture 2009-09-16 03:10:25 +00:00
Campbell Barton
51f1e82290 Object mode Selection options brought back for view3d.select
- 'center', while Ctrl is held select objects from their center location
- 'enumerate', while Alt is held, give a list of objects under the mouse
- Object selection menu now uses icons with names
- operator object.select_name(name, extend=False)
- keybindings so combinations of Ctrl/Alt/Shift can be used (like in 2.4x)
- logic text input field was using deprecated ID_SCRIPT rather then ID_TXT

details
- added comments to DNA_ID.h ID types
- removed unused ID types Sector and Life
- added uiIconFromID() to get an icon from the object.
- using name for selection is weak but currently there isnt a really good way to do this.
2009-09-16 01:15:30 +00:00
Matt Ebb
be613fd9dd OSX should use libsndfile in /lib, not /usr 2009-09-16 00:59:55 +00:00
Guillermo S. Romero
0befb9b01d Sync names with real content. 2009-09-15 23:37:20 +00:00
Guillermo S. Romero
581cb64f2c Make verification of committed .mo files optional. 2009-09-15 22:34:10 +00:00
Andrea Weikert
063d806f15 2.5 filebrowser
bugfix #1: SpaceFile->files needs to be deleted on exec and cancel of the filebrowser and in init to ensure correct setting of the read function.
bugfix #2: SpaceFile->params needs to be set in file_init otherwise Python can't access params in header ui.
2009-09-15 20:47:34 +00:00
Martin Poirier
22274d3807 More automatic stuff.
Server can now be set to broadcast on local network (every 10s, approximately 20 bytes of data) where client and slave can pick up its existence. This is on by default.

Default ip address is now "[default]", which means for the master that it will listen to all interface and for the clients and slave that they will automatically work out the master's address from its broadcast.
2009-09-15 19:53:18 +00:00
Martin Poirier
fd664970f1 Completely move freeing flag to report, operator flag is uneeded.
Also bugfix for py operators. Reports need to be kept alive when operator is registered.
2009-09-15 16:25:53 +00:00
Daniel Genrich
0a8fa9ff70 Smoke:
* This should make low res bake too if high res gets baked
2009-09-15 16:05:59 +00:00