Commit Graph

53000 Commits

Author SHA1 Message Date
Joseph Eagar
024866726e subdivide experimental stuff is now more stable. basically, it no longer creates new edges in all the situations it used too, plus you can connect two edges in an ngon. 2009-07-17 11:15:06 +00:00
Joseph Eagar
f2138686d9 moved the selection history stuff within bmesh itself, to avoid memory access problems. also committing some playing around I did with the edge subdivide code, which isn't doesn't really completely work. 2009-07-17 10:54:00 +00:00
Chingiz Dyussenov
9bfde6def0 Fixed textures import - images are assigned to faces. 2009-07-17 10:42:32 +00:00
Arystanbek Dyussenov
122104b3bb FBX exporter conversion almost done.
Unit tests:
- add a check that BKE_copy_images produces NULL filepath for images having type other than IMA_TYPE_IMAGE
- also expect NULL filepath for images having empty filename

Enhanced BKE_copy_images so the tests pass.
2009-07-17 10:09:07 +00:00
Chingiz Dyussenov
1aca6face8 Added cameras and lamps import, properties are not taken into account
except position.
2009-07-17 06:12:58 +00:00
Joseph Eagar
359fb502b6 small tweak 2009-07-17 06:12:50 +00:00
Joseph Eagar
6fa67401d8 some small edge split related things. now you can split edges (with no additional geometry created) with mkey. 2009-07-17 06:05:09 +00:00
Joseph Eagar
b588b65618 added vertex connect back to ykey 2009-07-17 05:09:33 +00:00
Joseph Eagar
b5dec78351 more files added. 2009-07-17 04:32:59 +00:00
Joseph Eagar
347712764a more compiling stuff 2009-07-17 04:27:40 +00:00
Joseph Eagar
90fe454280 yet another gcc fix 2009-07-17 04:11:00 +00:00
Matt Ebb
1ef7293585 Colour Management
- 1st stage: Linear Workflow

This implements automatic linear workflow in Blender's renderer. With the 
new Colour Management option on in the Render buttons, all inputs to the 
renderer and compositor are converted to linear colour space before 
rendering, and gamma corrected afterwards. In essence, this makes all 
manual gamma correction with nodes, etc unnecessary, since it's done 
automatically through the pipeline.

It's all explained much better in the notes/doc here, so please have a look:
http://wiki.blender.org/index.php/Dev:Source/Blender/Architecture/Colour_Management

And an example of the sort of difference it makes:
http://mke3.net/blender/devel/rendering/b25_colormanagement_test01.jpg

This also enables Colour Management in the default B.blend, and changes the 
default lamp falloff to inverse square, which is more correct, and much 
easier to use now it's all gamma corrected properly.

Next step is to look into profiles/soft proofing for the compositor.

Thanks to brecht for reviewing and fixing some oversights!
2009-07-17 02:43:15 +00:00
Campbell Barton
70f6255433 bpy rna
Calling rna functions with invalid keywords, too many keywords and too many args would fail silently
- now raise an error with invalid keywords and a list of valid ones, raise an error when too many args are given.
- calling rna functions would alloc a ParameterList each time, changed to use a stack variable (2 pointers and an int).
- store the number of parameters ParameterList
- python exception types were wrong in many cases, (using attribute error rather then type error)
- fixes to small errors in python UI scripts.
2009-07-17 02:31:28 +00:00
Joseph Eagar
fb6dde791d heh, forgot an ; 2009-07-17 02:07:35 +00:00
Joseph Eagar
bccc35b602 another attempt to hopefully fix gcc compiling 2009-07-17 01:57:12 +00:00
Joseph Eagar
fcd3a6de55 another attempt to hopefully fix gcc compiling 2009-07-17 01:43:01 +00:00
Joseph Eagar
f6d96f4363 move an include to hopefully fix gcc compiling 2009-07-17 01:36:21 +00:00
Joseph Eagar
928258936f mirror modifier is now feature-complete, though not all features can be tested at the moment. also cleaned up some of the memory leaks. 2009-07-17 00:32:19 +00:00
Joshua Leung
c6c853d88a 2.5 - 2 Tweaks
* Comment re-formatting for keyframe drawing code
* Removed redundant frame number button from buttons view header.
2009-07-17 00:17:37 +00:00
Campbell Barton
deb180e37f - Scrollbars for the console (use View2D functions)
- Set View2D operators not to register, got in the way a lot with the console.
- Made autocomplete Ctrl+Enter so Tab can be used.
- Should work with python 2.5 now. (patch from Vilda)
- Moved report struct definitions into DNA_windowmanager_types.h, could also have DNA_report_types.h however the reports are not saved, its just needed so the report list can be used in the wmWindowManager struct. Fixes a crash reported by ZanQdo.
- Store the report message length in the report so calculating the total height including word wrap is not so slow.
2009-07-16 22:47:27 +00:00
Joseph Eagar
479c970375 odd, this didn't get committed before 2009-07-16 22:23:01 +00:00
Joseph Eagar
4aa15cd216 added missing files identified by jmsoler 2009-07-16 20:10:33 +00:00
Nathan Letwory
2e854ec7cf SCons
* ensure all SConscripts are ready for win64-vc (where necessary).
* ensure we have proper _DEBUG flag for Python when we're doing a debug build.
* some cleaning up of linking etc.
* ensure /EHsc is there for game engine modules.
2009-07-16 19:41:28 +00:00
Daniel Genrich
730f319130 Another fluid + (little) cloth gui and settings update 2009-07-16 14:31:32 +00:00
Arystanbek Dyussenov
aede14d4e0 - replaced Object.create_mesh body with 2.4x API's Mesh.createFromObject code to also support curves, surfaces and metaballs.
- replaced Object.dag_update with Object.make_display_list, which copies old API's Object.makeDisplayList
2009-07-16 13:19:43 +00:00
Joshua Leung
0621225b38 2.5 - View2D fixes for User Prefs
Added NULL check for View2D code for invalid style pointer (this underlying problem should get addressed at some point), and reinstated the reinitialisation hack for panel regions.
2009-07-16 11:05:16 +00:00
Joseph Eagar
321246e6d9 vertex and uv layers now refernce mpolys/mloops in rna. also fixed some customdata-related problems. 2009-07-16 09:17:27 +00:00
Arystanbek Dyussenov
d381a668be Merge with 2.5 -r 21515:21619. 2009-07-16 09:09:38 +00:00
Arystanbek Dyussenov
73ad2d320c More FBX exporter conversion.
Experimenting with cross-compiling my branch with MinGW on Linux:
- tweaked config/linuxcross.py, source/blender/makesdna/intern/SConscript and tools/Blender.py
So far linking fails.
2009-07-16 08:20:15 +00:00
Chingiz Dyussenov
5a5b47c33e *Exporter handles empty objects.
*Added textures import.
TODO:
Fix images import.
2009-07-16 07:56:17 +00:00
Campbell Barton
88e3e8c1c9 - use outliner colors (with subtle stripes) for report so you can see divisions between operators with wrapping.
- added class option for PyOperators __register__ so you can set if py operators are logged in the console.
- PyOperators was refcounting in a more readable but incorrect way. in some cases would be possible to crash so better not drop the reference before using the value.
- console zoom operator was registering which meant zooming in to see some text would push it away :)
2009-07-16 07:11:46 +00:00
Joseph Eagar
0b1649b2b8 merge with 2.5 at r21568 2009-07-16 06:27:37 +00:00
Joshua Leung
513dcf7b46 2.5 - Silencing various compiler warnings (mingw) 2009-07-16 04:45:52 +00:00
Martin Poirier
111be5ea2a Extrude along normals.
Note that this is on in all cases now, it needs to be restricted to face extrude only.

Some slight transform operator cleanup too.
2009-07-16 03:16:03 +00:00
Guillermo S. Romero
2b99cdd5ca Add Makefile build support for Console Space Type (added in r21611). 2009-07-16 03:11:21 +00:00
Matt Ebb
772f6d9495 * Temporarily commented out a couple of lines from Brecht's User Prefs commit
Brecht: This makes Blender crash on startup for a few of us, so I'm just 
disabling it for now until you have have a look at it
2009-07-16 02:29:49 +00:00
Guillermo S. Romero
77c3b12023 SVN maintenance. 2009-07-16 02:04:31 +00:00
Campbell Barton
2f74b5a260 Console Space Type
* interactive console python console.
* display reports and filter types. defaults to operator display so you can see the python commands for tools as you use them,
  eventually it should be possible to select commands and make macto/tools from them.

Example use of autocomp.  b<tab>, bpy.<tab>, bpy.<tab>, bpy.data.<tab> etc.

basic instructions are printed when opening the console.

Details...
* Console exec and autocomp are done with operators written in python.
* added CTX_wm_reports() to get the global report list.
* The window manager had a report ListBase but reports have their own struct, switched to allocate and assign when initializing the WM since the type is not available in DNA.
* changed report types flags for easier display filtering.
* added report type RPT_OPERATOR
* logging operators also adds a python-syntax report into CTX_wm_reports() so they can be displayed in the console as well as calling a notifier for console to redraw.
* RnaAPI context.area.tag_redraw() to redraw the current area from a python operator.

Todo...
* better interactions with the console, scrolling, copy/paste.
* the text displayed doesnt load back.
* colors need to be themed.
* scroll limit needs to be a user pref.
* only tested with cmake and scons.
2009-07-16 00:50:27 +00:00
Brecht Van Lommel
7dc0083921 2.5: fix for uninitialized var in 3d view header template. 2009-07-15 23:24:51 +00:00
Brecht Van Lommel
acb07bf013 2.5: fix for closed panels not resizing properly. 2009-07-15 22:58:34 +00:00
Brecht Van Lommel
7c2fb42195 2.5: Defaults
* Wave modifier speed 0.5 -> 0.25.

* Particles even and random distribution on.
* Particles normal velocity 0.0 -> 1.0.
* Particles size 1.0 -> 0.05.
* Particles draw emitter and material color on.

* Field strength 0.0 -> 1.0

* Object drawing without material was not consistent
  with default material.

* Panel title 13 -> 12 points.
2009-07-15 22:58:12 +00:00
Joshua Leung
a8ce1a1586 2.5 - Tweak to Action Constraint 'Transform Channel' order of options 2009-07-15 22:51:47 +00:00
Brecht Van Lommel
d4504aa891 2.5
* Some changes to make lamp and world textures editing work.
  You may have to click on another texture slot once before
  being able to add a texture, and the layout is messy. Added
  this so lightenv project isn't blocked by this being missing.
* Adding a new material slot now doesn't create a new material
  anymore, to avoid creating unused materials.
* Tiny changes to scene/object buttons.
2009-07-15 19:20:59 +00:00
Brecht Van Lommel
4df1836325 2.5: User Preferences
* Added basic infrastructure to layout user preferences. The
  intention is that you open a user preferences space in place
  of the buttons space, and have panels there.
* The existing sections don't have to be followed, it's easy
  to create different ones, just change the user_pref_sections
  enum in RNA.
* This will get separated from the info header later.
2009-07-15 19:19:43 +00:00
Arystanbek Dyussenov
b334a45b35 COLLADA importer: base for object transform animation.
Fix a crash reported by Gary Richie: check NULL materials.
2009-07-15 18:59:49 +00:00
Andre Susano Pinto
146b54d5e8 *increased stack size (later this should be prepared for dealing with stack size in runtime)
*put cost model back to normal
2009-07-15 17:44:25 +00:00
Andre Susano Pinto
ef1fcd8ad1 *Added support to "BB hints" (which works like a BB version of LCTS - longest common transversing subtree)
It creates a tree cut after knowing that a given point will pass on a BB.
This tree cut is used to accelarate the rays casted from a given BB, eliminating unnecessary BB tests from root till the tree cut.
2009-07-15 17:38:00 +00:00
Peter Schlaile
99f373dc58 == Sequencer ==
Small fix for:

* Scene-Strip rendering with compositor scenes failed, if they
  had no camera attached...
2009-07-15 16:17:22 +00:00
Dalai Felinto
097d05a1af tiny fix: stamp alpha color was lacking range parameter
I was going to commit it later with other changes, but I'm changing other stuff at rna_scene.c for the gamedata, and didn't want to mix it up.
2009-07-15 03:47:05 +00:00
Andre Susano Pinto
e3f7cad32d *fix (was losing childs) 2009-07-14 23:26:00 +00:00