Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(281)

Unified Diff: source/blender/editors/sculpt_paint/sculpt_intern.h

Issue 5695043: Partial Visibility (Sculpt) (Closed) Base URL: https://svn.blender.org/svnroot/bf-blender/trunk/blender/
Patch Set: Fix more signedness differences Created 13 years ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « source/blender/editors/sculpt_paint/sculpt.c ('k') | source/blender/editors/sculpt_paint/sculpt_undo.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: source/blender/editors/sculpt_paint/sculpt_intern.h
===================================================================
--- source/blender/editors/sculpt_paint/sculpt_intern.h (revision 44561)
+++ source/blender/editors/sculpt_paint/sculpt_intern.h (working copy)
@@ -37,6 +37,7 @@
#include "DNA_vec_types.h"
#include "DNA_key_types.h"
+#include "BLI_bitmap.h"
#include "BLI_pbvh.h"
struct bContext;
@@ -54,6 +55,7 @@ struct MultiresModifierData *sculpt_multires_active(struct Scene *scene, struct
void sculpt(Sculpt *sd);
+int sculpt_mode_poll(struct bContext *C);
int sculpt_poll(struct bContext *C);
void sculpt_update_mesh_elements(struct Scene *scene, struct Sculpt *sd, struct Object *ob, int need_pmap);
@@ -65,9 +67,16 @@ int sculpt_stroke_get_location(bContext *C, float out[3], float mouse[2]);
/* Undo */
+typedef enum {
+ SCULPT_UNDO_COORDS,
+ SCULPT_UNDO_HIDDEN
+} SculptUndoType;
+
typedef struct SculptUndoNode {
struct SculptUndoNode *next, *prev;
+ SculptUndoType type;
+
char idname[MAX_ID_NAME]; /* name instead of pointer*/
void *node; /* only during push, not valid afterwards! */
@@ -79,12 +88,14 @@ typedef struct SculptUndoNode {
/* non-multires */
int maxvert; /* to verify if totvert it still the same */
int *index; /* to restore into right location */
+ BLI_bitmap vert_hidden;
/* multires */
int maxgrid; /* same for grid */
int gridsize; /* same for grid */
int totgrid; /* to restore into right location */
int *grids; /* to restore into right location */
+ struct GridHidden *grid_hidden;
/* layer brush */
float *layer_disp;
@@ -93,7 +104,7 @@ typedef struct SculptUndoNode {
char shapeName[sizeof(((KeyBlock *)0))->name];
} SculptUndoNode;
-SculptUndoNode *sculpt_undo_push_node(Object *ob, PBVHNode *node);
+SculptUndoNode *sculpt_undo_push_node(Object *ob, PBVHNode *node, SculptUndoType type);
SculptUndoNode *sculpt_undo_get_node(PBVHNode *node);
void sculpt_undo_push_begin(const char *name);
void sculpt_undo_push_end(void);
« no previous file with comments | « source/blender/editors/sculpt_paint/sculpt.c ('k') | source/blender/editors/sculpt_paint/sculpt_undo.c » ('j') | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b