Commit Graph

66005 Commits

Author SHA1 Message Date
Joshua Leung
d4d520c9a2 Grease Pencil: Various Drawing Fixes
* Restored option to have strokes aligned to screen space. By default, this is not enabled (the setting for view-space is the default instead). 

* Fixed bugs related to drawing/erasing in screen space.
2009-08-30 11:37:29 +00:00
Joerg Mueller
b9b30e2032 Same fix for libsndfile in cmake. 2009-08-30 09:11:24 +00:00
Joerg Mueller
c34d49cc5b Fix for libsndfile in mingw scons config. 2009-08-30 09:10:31 +00:00
Matt Ebb
970c9214b5 * Fixes for shading objects inside volumes 2009-08-30 07:07:02 +00:00
Matt Ebb
466d59461d * Limit available texture coordinate types when using volume materials 2009-08-30 06:42:53 +00:00
Joshua Leung
46ba8b6edb Grease Pencil: Hacky fix for "broken strokes" bug (pun intended) ;)
For the strokes drawn using OpenGL lines, moderately-sized changes in the pressure between two points could result in the stroke being disjointed, since a new GL_LINE_STRIP would need to be created with the new line thickness due to the new pressure value. 

(In reference to the summary of this commit, this bug was noticed by Matt Ebb (broken). This bug is also in 2.4x, but was suprisingly not really noticed.)
2009-08-30 06:10:38 +00:00
Joshua Leung
05ebac71ca Grease Pencil: Bugfix (Dots) + RNA Wrapping
* Making single dots should be possible again.

* Wrapped the debug option, 'Show Points', for layers, which makes all the points on the layer get drawn with dots indicating positions of stroke points.
2009-08-30 05:54:27 +00:00
Joshua Leung
e104b42929 Grease Pencil: Drawing Improvements
* Smooth strokes can now be drawn again, with normal (i.e. reasonably speedy feedback again). 
Previously slow drawing was caused by a bad notifier being used - the full screen was redrawn each time instead of just the relevant region. Now, only the relevant region is redrawn while drawing, and a proper flush is done for the rest of the screen at the end.

* Made drawing straight lines a proper drawing 'mode' for Grease Pencil now. Use the Ctrl-D-LMB hotkey to draw straight lines in this way. The (buffer) line drawn now will accurately represent the final straight line instead of drawing the freehand path taken as before.
2009-08-30 04:48:34 +00:00
Tom Musgrove
4b206c675c just some comment fixes 2009-08-30 03:10:03 +00:00
Martin Poirier
c9d2a1b71b bug fixes and small changes 2009-08-30 02:40:42 +00:00
Campbell Barton
2cb6078900 was crashing when joining in-link to in-link for the logic buttons. 2009-08-30 02:09:57 +00:00
Joseph Eagar
8408a72d16 cddm's recalc tesselation function works, and some memory leak fixes 2009-08-29 23:55:35 +00:00
Campbell Barton
75697c40a0 svn merge https://svn.blender.org/svnroot/bf-blender/trunk/blender -r22717:22875 2009-08-29 23:41:09 +00:00
Campbell Barton
c2696ae631 quiet warnings 2009-08-29 23:35:13 +00:00
Joerg Mueller
371c3bcf7a 2.5 Sound: Bugfixes. 2009-08-29 23:13:27 +00:00
Campbell Barton
530deb73a9 Workarounds for 2 rna bugs.
- mesh face properties that have no data are tested for length.
- the rawtype of MFace.verts is not set, defaulting to CHAR, meaning only verts with 256 verts could be added from python. temp workaround by making PROP_RAW_INT the first in the enum. For some reason makesrna.c doesn't set the raw type MFace.verts at all.
2009-08-29 23:05:46 +00:00
Janne Karhu
c6ccf5fd2e Cloth didn't update properly in particle mode. Don't understand why the particle mode check was there to begin with, but if removing it causes trouble later on some other solution can be figured out. 2009-08-29 21:52:57 +00:00
Nicholas Bishop
7a56228343 2.5 Paint:
* Don't do shared vertex colors for every vpaint dot. Profiling on a large mesh showed vpaint spent about 65% of the time in this function, but most of the time no difference will be apparent in the result. (Could make an operator so the user can force this operation after doing some painting.)

TODO:
Profiling now shows most time spent in drawing the mesh. (This is done twice for vpaint, the first time for finding backbuf sampling.)
2009-08-29 21:51:58 +00:00
Martin Poirier
5ab556e066 bugfix: on windows, it wouldn't correctly recognize directories and import python modules on load.
BLI_exist vs BLI_exists (fun times were had by all)
2009-08-29 20:29:29 +00:00
Thomas Dinges
a261330d5c 2.5:
Bugfix: Preview-Render didn't update when changing material/texture id block/slot.
2009-08-29 18:02:37 +00:00
Janne Karhu
47190b2009 Missing null check in particle edit code caused a crash when using search boxes. 2009-08-29 17:25:26 +00:00
Martin Poirier
afee963155 First commit draft for network rendering.
Docs are here: http://wiki.blender.org/index.php/User:Theeth/netrender

Should be easy to test if people want too, just follow the instructions on wiki

Code is still very much in flux, so I'd like if people would refrain from making changes (send patches directly to me if you must).

The UI side is very crap, it's basically there just to get things testable. See wiki for known bugs.
2009-08-29 17:25:22 +00:00
Andre Susano Pinto
ea18c6ef0a Code reorganization
-separated vbvh, svbvh, qbvh in diferent files (before the only way to switch between them was at compile time)
2009-08-29 17:24:45 +00:00
Martin Poirier
e6f2f4db28 default length for shape key list, so it looks good when empty 2009-08-29 17:13:06 +00:00
Campbell Barton
c9041b61c5 fix for problem building 2009-08-29 15:46:38 +00:00
Janne Karhu
874d38eeb4 Point cache editing:
- Baked point caches for particles, cloth and softbody can now be edited in particle mode.
	* This overwrites the old cloth/sb cache editmode editing.
	* The type of editable system is chosen from a menu.
	* For particles the current particle system and it's current cache are used.
- Currently this only works for caches that are in memory, but some automatic conversion from disk to memory and back can be implemented later.
- All tools from hair editing can't be applied to point caches and are hidden in the tool panel and specials menu. Some functionality like subdividing paths can be later implemented in a slightly different way from how it works for hair.
- Code is not yet optimized for speed, so editing might be slow sometimes.

Known issues:
- Cloth doesn't update properly while in particle mode, due to the way cloth modifier currently works. Daniel can you check on this?
- As "particle mode" is not only for particles any more some other name would be in place?
- Better icons are needed for the path, point, and tip-modes as the current icons from mesh edit mode are quite misleading.
- Direct editing of point velocities is not yet implemented, but will be in the future.

Other changes:
- Hair editing doesn't require a "make editable" button press any more.
- Multiple caches in single particle system disables changing emission properties.
- Unified ui code for all point cache panels.
	* Defined in buttons_particle.py and imported for cloth, smoke & softbody.
- Proper disabling of properties in ui after baking point caches. (Daniel could you please make needed disable code for smoke panels as their functionality is not familiar to me.)
- Hair weight brush has been removed. Once hair dynamics is re-implemented I'll code a more useable alternative to the functionality.

Bug fixes:
- Unlinking particle settings crashed.
- Deleting the active object with particles in the scene crashed.
- Softbody didn't write point caches correctly on save.
2009-08-29 15:20:36 +00:00
Joerg Mueller
c03004f93e 2.5: Added some sound actuator UI to reveal its real power, check it out! :) 2009-08-29 14:53:00 +00:00
Joshua Leung
3080a62733 Grease Pencil UI - Small fixes for the toggles (icons working correctly now) 2009-08-29 11:48:38 +00:00
Matt Ebb
a9947b33b2 minor tweaks 2009-08-29 10:34:31 +00:00
Matt Ebb
e055bb7f7d ui layout tweaks 2009-08-29 07:44:21 +00:00
Joshua Leung
8930a4fd33 Grease Pencil: UI (i.e. Panel) for Settings
Restored the UI for access to the GP layers. 

There are still a few minor bugs here:
* Wrong icons on the toggles - even when they're enabled, they only show a single state
* The ID-template doesn't seem to be showing up. Dunno what's going wrong there...
2009-08-29 06:50:32 +00:00
Joshua Leung
f46f6dc7ba Grease Pencil: Toolbar Compatability Fixes
* When starting Grease Pencil from the toolbar, strokes are now started only when a click-drag begins. 

* Made the 'straight-lines' option an RNA property for the operator

* Added an exec() callback and relevant stroke-collection stuff so that interactive redo/changing settings can work. 
WARNING: this is highly unstable here - keeps crashing though I cannot determine the cause yet.
2009-08-29 01:54:10 +00:00
Matt Ebb
732844bb28 * Fixes for point density texture 2009-08-29 00:41:14 +00:00
Joerg Mueller
beee5161a9 UI for sound (un)packing. 2009-08-28 22:04:37 +00:00
Joerg Mueller
17fc83e537 Error in last commit. 2009-08-28 21:54:41 +00:00
Nicholas Bishop
77c587a825 2.5 Paint:
* Removed the BKE_sculpt file and moved it's contents (basically just the sculpt session struct) to BKE_paint
2009-08-28 21:47:11 +00:00
Joerg Mueller
03b3d2cb79 Sound packing/unpacking operators. 2009-08-28 21:47:05 +00:00
Guillermo S. Romero
99eae3d93a SVN maintenance. 2009-08-28 21:31:13 +00:00
Nicholas Bishop
6f4e0e8e54 2.5 Paint:
* Cleaned up some vertex paint code. Reduces code duplication a bit.
2009-08-28 21:07:55 +00:00
Brecht Van Lommel
6f80bff0e2 2.5: fix bug in ID property loading, which also loading python
RNA collections saves as ID properties.
2009-08-28 20:51:30 +00:00
Joerg Mueller
a179d16550 Moved unpack_method_items to the right place. 2009-08-28 20:41:12 +00:00
Diego Borghetti
9781320716 Add Makefile for sound ops. 2009-08-28 15:54:15 +00:00
Campbell Barton
9e7b276dba Sequence sound was raising a python exception with crop and offset buttons.
renamed RNA properties.
 x_offset, y_offset -> offset_x, offset_y, this order is more common in rna.
 render.border ->  render.use_border
 render.placeholders -> render.use_placeholder
 render.no_overwrite -> render.use_overwrite
2009-08-28 15:03:49 +00:00
Campbell Barton
9ea58be54e - povray and ply work now.
Again, please try not to break scripts - at least grep the release dir for the names you change.

- rna material property rename
  gloss_amount -> gloss_factor, since its from 0.0 to 1.0, prefix factor is used on other material settings.
  reflectivity -> reflect_factor
2009-08-28 14:25:17 +00:00
Benoit Bolsee
af85ee01f8 Update MSVC project files. 2009-08-28 13:42:58 +00:00
Joshua Leung
c15db042cc Grease Pencil: WIP Code Reordering + Context Stuff
* Shuffled some code around, and renamed some functions used for getting context info
- Split UI-buttons into a separate file from stroke-drawing code
- Removed some obsolete code (i.e. old paint code that used to be in _edit, but which has been moved to _paint). 

* Made drawing in 3D-View default to using the active object as the owner of the Grease Pencil data. For now, the drawing code will therefore only show the GP data for the active object only. More work to come on this.

* Fixed freeing code for Objects/Scenes with GP data.
2009-08-28 12:41:45 +00:00
Joerg Mueller
d7656684e2 Quick fix for scons (untested though :/). 2009-08-28 12:38:59 +00:00
Joerg Mueller
6a8020b9c6 First try in sound UI for the sequencer. 2009-08-28 12:27:29 +00:00
Joerg Mueller
3ac11df33b First try of sound operators, untested. 2009-08-28 11:13:45 +00:00
Joseph Eagar
89f0284982 Shift-G (select similar) is now bmeshafied for vert select mode.
The patch was by Wael El Oraiby.
2009-08-28 10:59:16 +00:00